1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-27 09:48:05 +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:
Virgil Dupras 2020-07-05 17:36:31 -04:00
parent 293a561ab2
commit 8bb9230f49

View File

@ -1,10 +1,10 @@
( 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, ;
: 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, ;
: HLZ, A H LDrr, L ORr, ;
: DEZ, A D LDrr, E ORr, ;
: LDDE(HL), E (HL) LDrr, HL INCd, D (HL) LDrr, ;