1
0
mirror of https://github.com/hsoft/collapseos.git synced 2024-11-16 19:48:05 +11:00
collapseos/blk/294
Virgil Dupras a6e987b5f7 z80: protect BC in _find
In preparation for the IY->BC move
2020-07-05 22:43:32 -04:00

16 lines
484 B
Plaintext

( At this point, Z is set if we have a match. In all cases,
we want to pop HL and DE )
DE POP, ( <-- lvl 4 )
IFZ, ( match, we're done! )
HL POP, BC POP, HL POP, ( <-- lvl 1-3 ) DE PUSH,
PUSH1, JPNEXT,
THEN,
( no match, go to prev and continue )
DE DECd, DE DECd, DE DECd, ( prev field )
DE PUSH, ( --> lvl 4 )
EXDEHL,
LDDE(HL),
( cont. )