mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-05 19:30:56 +11:00
6bc1738bfd
8086 asm is a lot terser than z80... Those indirect memory operations are very handy.
15 lines
506 B
Plaintext
15 lines
506 B
Plaintext
PC 0x1d - ORG @ 0x1b + ! ( next )
|
|
DI DX MOVxx, ( <-- IP ) DX INCx, DX INCx,
|
|
DI [DI] MOVx[], ( wordref )
|
|
( continue to execute )
|
|
L1 BSET PC 0x36 - ORG @ 0x34 + ! ( execute -- DI -> wordref )
|
|
AL [DI] MOVr[], DI INCx, ( PFA )
|
|
AL AL ORrr, IFZ, DI JMPr, THEN, ( native )
|
|
( continue to compiled )
|
|
|
|
PC 0x11 - ORG @ 0x0f + ! ( compiled -- DI -> PFA )
|
|
BP INCx, BP INCx, [BP] 0 DX MOV[]+x, ( pushRS )
|
|
DX DI MOVxx, DX INCx, DX INCx, ( --> IP )
|
|
DI [DI] MOVx[],
|
|
JMPs, L1 @ RPCs,
|