mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-10 09:48:05 +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.
16 lines
262 B
Plaintext
16 lines
262 B
Plaintext
( Low-level part of ROLL. Example:
|
|
"1 2 3 4 4 (roll)" --> "1 3 4 4". No sanity checks, never
|
|
call with 0. )
|
|
CODE (roll)
|
|
HL POP,
|
|
B H LDrr,
|
|
C L LDrr,
|
|
SP ADDHLd,
|
|
HL INCd,
|
|
D H LDrr,
|
|
E L LDrr,
|
|
HL DECd,
|
|
HL DECd,
|
|
LDDR,
|
|
;CODE
|