9424770caa
Driver configuration don't need their own words at runtime, we only need to compile them as literals when compiling words. Now that we have this "declaration blocks" pattern emerging, it seems like a good idea to take advantage of this in drivers, both for simplifying the xcomp unit and to make final binary slimmer.
15 lines
393 B
Plaintext
15 lines
393 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,
|
|
ACIAW> LD(n)HL,
|
|
DE ACIA) LDdd(n),
|
|
DE SUBHLd,
|
|
|
|
|
|
( cont. )
|