Fix bug where A was overwritten in _uart_txb_block
If you wanted to transmit a value and then check what it was, you can do that now.
This commit is contained in:
@@ -17,10 +17,12 @@ _uart_txb:
|
|||||||
rts
|
rts
|
||||||
|
|
||||||
_uart_txb_block:
|
_uart_txb_block:
|
||||||
|
pha
|
||||||
sta UART_TXB ; Write value
|
sta UART_TXB ; Write value
|
||||||
@1: lda UART_STATUS ; Wait for status[0] to be 0
|
@1: lda UART_STATUS ; Wait for status[0] to be 0
|
||||||
bit #$01
|
bit #$01
|
||||||
bne @1
|
bne @1
|
||||||
|
pla
|
||||||
rts
|
rts
|
||||||
|
|
||||||
_uart_rxb:
|
_uart_rxb:
|
||||||
|
|||||||
Reference in New Issue
Block a user