mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-14 17:48:09 +11:00
723d3c4249
(well, not PC@ and PC!, but I'm not even sure what would be the role of these in a PC/AT. they're only used in drivers on the z80 front, so they will not be immediately needed. todo... ) Now comes the fitting part.
11 lines
402 B
Plaintext
11 lines
402 B
Plaintext
: OPm ( modrm op ) CREATE C, C, DOES> C@+ A, C@ OR A, ;
|
|
0 0xff OPm INC[w], 0 0xfe OPm INC[b],
|
|
0x8 0xff OPm DEC[w], 0x8 0xfe OPm DEC[b],
|
|
0x30 0xff OPm PUSH[w], 0 0x8f OPm POP[w],
|
|
|
|
: OPm+ ( modrm op ) CREATE C, C, DOES>
|
|
( m off ) C@+ A, C@ ROT OR A, A, ;
|
|
0x40 0xff OPm+ INC[w]+, 0x40 0xfe OPm+ INC[b]+,
|
|
0x48 0xff OPm+ DEC[w]+, 0x48 0xfe OPm+ DEC[b]+,
|
|
0x70 0xff OPm+ PUSH[w]+, 0x40 0x8f OPm+ POP[w]+,
|