mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 02:31:01 +11:00
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.
17 lines
462 B
Plaintext
17 lines
462 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 2 )
|
|
HL POP, ( <-- lvl 1 )
|
|
JRZ, L2 FWR ( end-B296, match? we're done! )
|
|
( no match, go to prev and continue )
|
|
HL PUSH, ( --> lvl 1 )
|
|
DE DECd, DE DECd, DE DECd, ( prev field )
|
|
DE PUSH, ( --> lvl 2 )
|
|
EXDEHL,
|
|
LDDE(HL),
|
|
|
|
|
|
|
|
|
|
( cont. )
|