runs but doesn't work

This commit is contained in:
Brooke Vibber 2024-12-26 18:35:37 -08:00
parent 45c5a4cb2d
commit 0cde31905e

View file

@ -548,7 +548,6 @@ done:
lda #$40
sta ptr + 1
ldx #0
ldy #0
; outer loop: $00 -> $3f
@ -566,7 +565,9 @@ inner_loop:
lda result
sta (ptr),y
lda result + 1
iny
sta (ptr),y
dey
; result += 2 * arg2
clc
@ -594,7 +595,7 @@ inner_loop:
inc arg2
inc ptr + 1
lda ptr + 1
cmp #$40
cmp #$80
bne outer_loop
rts