First throw at UART.
This commit is contained in:
28
hw/efinix_fpga/test_programs/uart.s
Normal file
28
hw/efinix_fpga/test_programs/uart.s
Normal file
@@ -0,0 +1,28 @@
|
||||
.code
|
||||
|
||||
UART_TX = $efe6
|
||||
UART_RX = UART_TX
|
||||
UART_STATUS = $efe7
|
||||
UART_CONTROL = UART_STATUS
|
||||
|
||||
main:
|
||||
ldx #$00
|
||||
loop:
|
||||
lda string,x
|
||||
sta UART_TX
|
||||
|
||||
end:
|
||||
wai
|
||||
bra end
|
||||
|
||||
|
||||
|
||||
string:
|
||||
.asciiz "Hello, world!"
|
||||
|
||||
|
||||
.segment "VECTORS"
|
||||
|
||||
.addr main
|
||||
.addr main
|
||||
.addr main
|
||||
Reference in New Issue
Block a user