mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-30 21:18:07 +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.
16 lines
514 B
Plaintext
16 lines
514 B
Plaintext
IFZ,
|
|
( match, let's compare the string then )
|
|
DE DECd, ( Skip prev field. One less because we )
|
|
DE DECd, ( pre-decrement )
|
|
B C LDrr, ( loop C times )
|
|
BEGIN,
|
|
( pre-decrement for easier Z matching )
|
|
DE DECd,
|
|
HL DECd,
|
|
LDA(DE),
|
|
(HL) CPr,
|
|
JRNZ, BREAK,
|
|
DJNZ, AGAIN,
|
|
THEN,
|
|
( cont. )
|