mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 16:28: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.
12 lines
176 B
Plaintext
12 lines
176 B
Plaintext
( d n -- )
|
|
: OP3dn
|
|
CREATE C,
|
|
DOES>
|
|
C@ ( d n op )
|
|
ROT ( n op d )
|
|
<<4 ( n op d<<4 )
|
|
OR A,
|
|
A,,
|
|
;
|
|
0x01 OP3dn LDdn,
|