2020-04-22 19:03:32 -04:00
|
|
|
( Macros )
|
|
|
|
( clear carry + SBC )
|
2020-06-27 22:01:56 -04:00
|
|
|
: SUBHLd, A ORr, SBCHLd, ;
|
2020-07-05 17:36:31 -04:00
|
|
|
: PUSH0, DE 0 LDdn, DE PUSH, ;
|
|
|
|
: PUSH1, DE 1 LDdn, DE PUSH, ;
|
|
|
|
: PUSHZ, DE 0 LDdn, IFZ, DE INCd, THEN, DE PUSH, ;
|
|
|
|
: PUSHA, D 0 LDri, E A LDrr, DE PUSH, ;
|
2020-04-27 15:04:37 -04:00
|
|
|
: HLZ, A H LDrr, L ORr, ;
|
|
|
|
: DEZ, A D LDrr, E ORr, ;
|
2020-06-27 22:01:56 -04:00
|
|
|
: 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, ;
|