mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 03:20:56 +11:00
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.
14 lines
455 B
Plaintext
14 lines
455 B
Plaintext
(entry) ~ACIA ( Set RST 38 jump ) PC ORG @ 0x39 + !
|
|
AF PUSH, HL PUSH, DE PUSH,
|
|
( Read our character from ACIA into our BUFIDX )
|
|
ACIA_CTL INAi,
|
|
0x01 ANDi, ( is ACIA rcv buf full? )
|
|
IFNZ,
|
|
( correct interrupt cause )
|
|
ACIAW> LDHL(n),
|
|
( is it == to ACIAR>? )
|
|
( +0 == ACIAR> )
|
|
DE ACIAR> LDdd(n),
|
|
( carry cleared from ANDi above )
|
|
DE SBCHLd, ( cont. )
|