From bb88981d80d25c368c6e648e91f59217423389c0 Mon Sep 17 00:00:00 2001 From: "matthias@rpi" Date: Mon, 30 Oct 2023 22:14:08 +0100 Subject: [PATCH] fix addressing mode --- system/lcd.s65 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/lcd.s65 b/system/lcd.s65 index 2b31181..fc20ecd 100644 --- a/system/lcd.s65 +++ b/system/lcd.s65 @@ -103,7 +103,7 @@ LCD_CLEAR = %00000000 .proc lcd_print ldy #$00 @lcd_print_loop: - lda ARG0,y + lda (ARG0),y beq @lcd_print_end jsr _lcd_char iny @@ -112,6 +112,10 @@ LCD_CLEAR = %00000000 rts .endproc +;******************************************************************************** +; @macro Print a null-terminated string +; @param message: Address of the message +;******************************************************************************** .macro Print message jsr lcd_clear lda #.LOBYTE(message)