mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-14 14:48:08 +11:00
6bc1738bfd
8086 asm is a lot terser than z80... Those indirect memory operations are very handy.
11 lines
380 B
Plaintext
11 lines
380 B
Plaintext
: MOVri, SWAP 0xb0 OR A, A, ;
|
|
: MOVxI, SWAP 0xb8 OR A, A,, ;
|
|
: MOVsx, 0x8e A, SWAP 3 LSHIFT OR 0xc0 OR A, ;
|
|
: MOVxm, 0x8b A, SWAP 3 LSHIFT 0x6 OR A, A,, ;
|
|
: INT, 0xcd A, A, ;
|
|
: ADDAXI, 0x05 A, A,, ; : ADDALi, 0x04 A, A, ;
|
|
: SUBxi, 0x83 A, SWAP 0xe8 OR A, A, ;
|
|
: ADDxi, 0x83 A, SWAP 0xc0 OR A, A, ;
|
|
: JMPr, 0xff A, 7 AND 0xe0 OR A, ;
|
|
: JMPf, ( seg off ) 0xea A, SPLITB A, A, A,, ;
|