mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 20:48: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.
15 lines
232 B
Plaintext
15 lines
232 B
Plaintext
( bitwise rotation ops have a similar sig )
|
|
: OProt ( r -- )
|
|
CREATE C,
|
|
DOES>
|
|
0xcb A,
|
|
C@ ( r op )
|
|
OR A,
|
|
;
|
|
0x10 OProt RL,
|
|
0x00 OProt RLC,
|
|
0x18 OProt RR,
|
|
0x08 OProt RRC,
|
|
0x20 OProt SLA,
|
|
0x38 OProt SRL,
|