mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 17:08:05 +11:00
6bc1738bfd
8086 asm is a lot terser than z80... Those indirect memory operations are very handy.
11 lines
216 B
Plaintext
11 lines
216 B
Plaintext
CODE >R
|
|
BP INCx, BP INCx, [BP] 0 POP[w]+,
|
|
;CODE NOP, NOP, NOP,
|
|
CODE R>
|
|
[BP] 0 PUSH[w]+, BP DECx, BP DECx,
|
|
;CODE
|
|
CODE 2R>
|
|
[BP] -2 PUSH[w]+, [BP] 0 PUSH[w]+, BP 4 SUBxi,
|
|
;CODE
|
|
CODE I [BP] 0 PUSH[w]+, ;CODE
|