Prev: F086 Up: Map Next: F0BD
F0A4: check RS232 bus idle
Used by the routines at ED0C and F875.
F0A4 48 PHA save A
F0A5 AD A1 02 LDA $02A1 get the RS-232 interrupt enable byte
F0A8 F0 11 BEQ $F0BB if no interrupts enabled just exit
F0AA AD A1 02 LDA $02A1 get the RS-232 interrupt enable byte
F0AD 29 03 AND #%00000011 mask 0000 00xx, the error bits
F0AF D0 F9 BNE $F0AA if there are errors loop
F0B1 A9 10 LDA #$10 disable FLAG interrupt
F0B3 8D 0D DD STA $DD0D save VIA 2 ICR
F0B6 A9 00 LDA #$00 clear A
F0B8 8D A1 02 STA $02A1 clear the RS-232 interrupt enable byte
F0BB 68 PLA restore A
F0BC 60 RTS
Prev: F086 Up: Map Next: F0BD