mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-27 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
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. )
|