mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 11:38:07 +11:00
z80a: make PUSH* macros use DE instead of BC
This is in preparation of using BC instead of IY for IP. I've verified all PUSH* usage and none was problematic.
This commit is contained in:
parent
293a561ab2
commit
8bb9230f49
8
blk/249
8
blk/249
@ -1,10 +1,10 @@
|
|||||||
( Macros )
|
( Macros )
|
||||||
( clear carry + SBC )
|
( clear carry + SBC )
|
||||||
: SUBHLd, A ORr, SBCHLd, ;
|
: SUBHLd, A ORr, SBCHLd, ;
|
||||||
: PUSH0, BC 0 LDdn, BC PUSH, ;
|
: PUSH0, DE 0 LDdn, DE PUSH, ;
|
||||||
: PUSH1, BC 1 LDdn, BC PUSH, ;
|
: PUSH1, DE 1 LDdn, DE PUSH, ;
|
||||||
: PUSHZ, BC 0 LDdn, IFZ, BC INCd, THEN, BC PUSH, ;
|
: PUSHZ, DE 0 LDdn, IFZ, DE INCd, THEN, DE PUSH, ;
|
||||||
: PUSHA, B 0 LDri, C A LDrr, BC PUSH, ;
|
: PUSHA, D 0 LDri, E A LDrr, DE PUSH, ;
|
||||||
: HLZ, A H LDrr, L ORr, ;
|
: HLZ, A H LDrr, L ORr, ;
|
||||||
: DEZ, A D LDrr, E ORr, ;
|
: DEZ, A D LDrr, E ORr, ;
|
||||||
: LDDE(HL), E (HL) LDrr, HL INCd, D (HL) LDrr, ;
|
: LDDE(HL), E (HL) LDrr, HL INCd, D (HL) LDrr, ;
|
||||||
|
Loading…
Reference in New Issue
Block a user