Add uart2 test program
Reads input from uart and then writes it back out again immediately.
This commit is contained in:
@@ -9,7 +9,14 @@ main:
|
||||
ldx #$00
|
||||
loop:
|
||||
lda string,x
|
||||
beq end
|
||||
sta UART_TX
|
||||
inx
|
||||
wait:
|
||||
lda UART_STATUS
|
||||
bit #$02
|
||||
beq loop
|
||||
bra wait
|
||||
|
||||
end:
|
||||
wai
|
||||
|
||||
Reference in New Issue
Block a user