mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 16:58: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.
14 lines
182 B
Plaintext
14 lines
182 B
Plaintext
: OP2i ( i -- )
|
|
CREATE C,
|
|
DOES>
|
|
C@ A, A,
|
|
;
|
|
0xd3 OP2i OUTiA,
|
|
0xdb OP2i INAi,
|
|
0xc6 OP2i ADDi,
|
|
0xe6 OP2i ANDi,
|
|
0xf6 OP2i ORi,
|
|
0xd6 OP2i SUBi,
|
|
0xee OP2i XORi,
|
|
0xfe OP2i CPi,
|