mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-20 16:38:06 +11:00
440ea43a88
Initially, I used the same letters as those used in the z80 ref docs, but it makes the different assemblers harder to use than they should. Having consistent "argtype" rules across assemblers should help.
11 lines
162 B
Plaintext
11 lines
162 B
Plaintext
: OP2d ( d -- )
|
|
CREATE C,
|
|
DOES>
|
|
0xed A,
|
|
C@ SWAP ( op d )
|
|
<<4 ( op d<< 4 )
|
|
OR A,
|
|
;
|
|
0x4a OP2d ADCHLd,
|
|
0x42 OP2d SBCHLd,
|