Add uart2 test program

Reads input from uart and then writes it back out again immediately.
This commit is contained in:
Byron Lathi
2023-01-12 14:05:13 -06:00
parent d5bccd46e3
commit 519cd19739
7 changed files with 53 additions and 23 deletions

View File

@@ -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