fix(serial): now using postinc instead of lea to do iteration over bytes
This commit is contained in:
@@ -52,7 +52,7 @@ NOTREADY@
|
|||||||
POUTZSTR
|
POUTZSTR
|
||||||
pshs a,b ; Preserve A and B
|
pshs a,b ; Preserve A and B
|
||||||
NEXTC@
|
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
|
cmpb #$00 ; Make sure that we aren't at a terminator
|
||||||
beq END@
|
beq END@
|
||||||
NOTREADY@
|
NOTREADY@
|
||||||
@@ -60,7 +60,6 @@ NOTREADY@
|
|||||||
bita UARTF_LSR_THRE
|
bita UARTF_LSR_THRE
|
||||||
beq NOTREADY@
|
beq NOTREADY@
|
||||||
stb UART_THR ; Write char
|
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
|
bra NEXTC@ ; Iter to next char
|
||||||
END@
|
END@
|
||||||
puls b,a ; Restore A and B
|
puls b,a ; Restore A and B
|
||||||
|
Reference in New Issue
Block a user