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.
13 lines
412 B
Plaintext
13 lines
412 B
Plaintext
( Macros )
|
|
( clear carry + SBC )
|
|
: SUBHLd, A ORr, SBCHLd, ;
|
|
: PUSH0, BC 0 LDdn, BC PUSH, ;
|
|
: PUSH1, BC 1 LDdn, BC PUSH, ;
|
|
: PUSHZ, BC 0 LDdn, IFZ, BC INCd, THEN, BC PUSH, ;
|
|
: PUSHA, B 0 LDri, C A LDrr, BC PUSH, ;
|
|
: HLZ, A H LDrr, L ORr, ;
|
|
: DEZ, A D LDrr, E ORr, ;
|
|
: LDDE(HL), E (HL) LDrr, HL INCd, D (HL) LDrr, ;
|
|
: OUTHL, DUP A H LDrr, OUTiA, A L LDrr, OUTiA, ;
|
|
: OUTDE, DUP A D LDrr, OUTiA, A E LDrr, OUTiA, ;
|