2020-05-14 15:13:16 -04:00
|
|
|
(entry) ~ACIA ( Set RST 38 jump ) PC ORG @ 0x39 + !
|
2020-06-27 22:01:56 -04:00
|
|
|
AF PUSH, HL PUSH, DE PUSH,
|
2020-04-23 12:42:41 -04:00
|
|
|
( Read our character from ACIA into our BUFIDX )
|
2020-06-27 22:01:56 -04:00
|
|
|
ACIA_CTL INAi,
|
|
|
|
0x01 ANDi, ( is ACIA rcv buf full? )
|
2020-04-23 12:42:41 -04:00
|
|
|
IFNZ,
|
|
|
|
( correct interrupt cause )
|
|
|
|
( +2 == ACIAW> )
|
2020-06-27 22:01:56 -04:00
|
|
|
ACIA_MEM 2+ LDHL(n),
|
2020-04-23 12:42:41 -04:00
|
|
|
( is it == to ACIAR>? )
|
|
|
|
( +0 == ACIAR> )
|
2020-06-27 22:01:56 -04:00
|
|
|
DE ACIA_MEM LDdd(n),
|
|
|
|
( carry cleared from ANDi above )
|
|
|
|
DE SBCHLd, ( cont. )
|