mirror of
https://github.com/hsoft/collapseos.git
synced 2024-11-06 01:40:56 +11:00
73623fff53
it seems I left my asm argument harmonization half done here. Instructions list at B208 doesn't correspond to many actual mnemonics. This mnemonic here was the worst offender.
14 lines
454 B
Plaintext
14 lines
454 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> LDd(n),
|
|
( carry cleared from ANDi above )
|
|
DE SBCHLd, ( cont. )
|