mirror of
https://github.com/hsoft/collapseos.git
synced 2024-12-25 17:28:06 +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
492 B
Plaintext
17 lines
492 B
Plaintext
( DE contains prev offset )
|
|
HL POP, ( <-- lvl 2 )
|
|
( HL is prev field's addr. Is offset zero? )
|
|
DEZ,
|
|
IFNZ,
|
|
( get absolute addr from offset )
|
|
( carry cleared from "or e" )
|
|
DE SBCHLd,
|
|
EXDEHL, ( result in DE )
|
|
THEN,
|
|
HL POP, ( <-- lvl 1 )
|
|
JRNZ, AGAIN, ( inner-B292, try to match again )
|
|
( Z set? end of dict, unset Z )
|
|
|
|
|
|
( cont. )
|