fix addressing mode
This commit is contained in:
parent
f3a51dc764
commit
bb88981d80
@ -103,7 +103,7 @@ LCD_CLEAR = %00000000
|
|||||||
.proc lcd_print
|
.proc lcd_print
|
||||||
ldy #$00
|
ldy #$00
|
||||||
@lcd_print_loop:
|
@lcd_print_loop:
|
||||||
lda ARG0,y
|
lda (ARG0),y
|
||||||
beq @lcd_print_end
|
beq @lcd_print_end
|
||||||
jsr _lcd_char
|
jsr _lcd_char
|
||||||
iny
|
iny
|
||||||
@ -112,6 +112,10 @@ LCD_CLEAR = %00000000
|
|||||||
rts
|
rts
|
||||||
.endproc
|
.endproc
|
||||||
|
|
||||||
|
;********************************************************************************
|
||||||
|
; @macro Print a null-terminated string
|
||||||
|
; @param message: Address of the message
|
||||||
|
;********************************************************************************
|
||||||
.macro Print message
|
.macro Print message
|
||||||
jsr lcd_clear
|
jsr lcd_clear
|
||||||
lda #.LOBYTE(message)
|
lda #.LOBYTE(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user