Fix not saving to ptr1 and comparing y

This commit is contained in:
Byron Lathi
2023-11-30 23:57:58 -08:00
parent 597d15e234
commit a169b30028

View File

@@ -106,12 +106,13 @@ FAIL: lda #$ff ; return -1 on fail
cpx #$00 cpx #$00
bne L1 bne L1
bra FAIL bra FAIL
L1: L1: sta ptr1
stx ptr1+1
ldy #$00 ldy #$00
LOOP: lda (ptr1),y ; Loop through buffer and print LOOP: lda (ptr1),y ; Loop through buffer and print
jsr _serial_putc jsr _serial_putc
iny iny
cmp tmp1 cpy tmp1
blt LOOP blt LOOP
lda #$00 lda #$00
rts rts