fix: fixed immediate values
This commit is contained in:
@@ -13,25 +13,25 @@
|
|||||||
ORG ROM_BASE
|
ORG ROM_BASE
|
||||||
|
|
||||||
RESET
|
RESET
|
||||||
lda %11000001 ; 8n1 serial, enable DLAB
|
lda #%11000001 ; 8n1 serial, enable DLAB
|
||||||
sta UART_LCR
|
sta UART_LCR
|
||||||
|
|
||||||
lda $00 ; Set divisor to 12 (9600 baud)
|
lda #$00 ; Set divisor to 12 (9600 baud)
|
||||||
sta UART_DLL
|
sta UART_DLL
|
||||||
lda $0C
|
lda #$0C
|
||||||
sta UART_DLM
|
sta UART_DLM
|
||||||
|
|
||||||
lda %11000000 ; 8n1 serial, disable DLAB
|
lda #%11000000 ; 8n1 serial, disable DLAB
|
||||||
sta UART_LCR
|
sta UART_LCR
|
||||||
|
|
||||||
lda %01000000 ; Enable RTS
|
lda #%01000000 ; Enable RTS
|
||||||
sta UART_MCR
|
sta UART_MCR
|
||||||
|
|
||||||
lda 'H ; send 'H'
|
lda 'H ; send 'H'
|
||||||
sta UART_BUFR
|
sta UART_BUFR
|
||||||
|
|
||||||
WAIT
|
WAIT
|
||||||
sync ; Wait for interrupts
|
sync ; Wait for interrupts
|
||||||
nop
|
nop
|
||||||
bra WAIT
|
bra WAIT
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user