mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-24 00: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.
16 lines
264 B
Plaintext
16 lines
264 B
Plaintext
CODE PICK
|
|
HL POP,
|
|
( x2 )
|
|
L SLA, H RL,
|
|
SP ADDHLd,
|
|
C (HL) LDrr,
|
|
HL INCd,
|
|
B (HL) LDrr,
|
|
( check PS range before returning )
|
|
EXDEHL,
|
|
HL PS_ADDR LDdn,
|
|
DE SUBHLd,
|
|
CC lblofl @ JPc, ( abortUnderflow-B298 )
|
|
BC PUSH,
|
|
;CODE
|