Prev: EF3B Up: Map Next: EF59
EF4A: compute bit count
Used by the routine at F409.
EF4A A2 09 LDX #$09 set bit count to 9, 8 data + 1 stop bit
EF4C A9 20 LDA #%00100000 mask for 8/7 data bits
EF4E 2C 93 02 BIT $0293 test pseudo 6551 control register
EF51 F0 01 BEQ $EF54 branch if 8 bits
EF53 CA DEX else decrement count for 7 data bits
EF54 50 02 BVC $EF58 branch if 7 bits
EF56 CA DEX else decrement count ..
EF57 CA DEX .. for 5 data bits
EF58 60 RTS
Prev: EF3B Up: Map Next: EF59