mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-26 03: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
240 B
Plaintext
16 lines
240 B
Plaintext
BEGIN, ( loop )
|
|
SCF,
|
|
C RL,
|
|
RLA,
|
|
HL ADCHLd,
|
|
DE SBCHLd,
|
|
IFC,
|
|
DE ADDHLd,
|
|
C DECr,
|
|
THEN,
|
|
DJNZ, AGAIN, ( loop )
|
|
B A LDrr,
|
|
HL PUSH,
|
|
BC PUSH,
|
|
;CODE
|