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