Fix not saving to ptr1 and comparing y
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user