mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 08:00:55 +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
IFNZ, ( buffer full? )
|
|
( no, continue )
|
|
DE ADDHLd, ( restore ACIAW> )
|
|
( buffer not full, let's write )
|
|
ACIA_IO INAi,
|
|
(HL) A LDrr,
|
|
( advance W> )
|
|
HL INCd,
|
|
( +2 == ACIAW> )
|
|
ACIA_MEM 2+ LD(n)HL,
|
|
( +6 == ACIA) )
|
|
DE ACIA_MEM 6 + LDdd(n),
|
|
DE SUBHLd,
|
|
|
|
|
|
( cont. )
|