From 59b0fcfa0a6666d2349467e43ac8fc7403686b7d Mon Sep 17 00:00:00 2001 From: Gale Faraday Date: Thu, 25 Sep 2025 17:20:38 -0500 Subject: [PATCH] fix(serial): now using postinc instead of lea to do iteration over bytes --- src/serial.s | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/serial.s b/src/serial.s index b7b07a4..cda3881 100644 --- a/src/serial.s +++ b/src/serial.s @@ -52,7 +52,7 @@ NOTREADY@ POUTZSTR pshs a,b ; Preserve A and B NEXTC@ - ldb 0,x ; Get next char from X + ldb ,x+ ; Get next char from X and increment X for next time cmpb #$00 ; Make sure that we aren't at a terminator beq END@ NOTREADY@ @@ -60,7 +60,6 @@ NOTREADY@ bita UARTF_LSR_THRE beq NOTREADY@ stb UART_THR ; Write char - leax 1,x ; Iter to next char. We X++ here because leax modifies CC.Z bra NEXTC@ ; Iter to next char END@ puls b,a ; Restore A and B