forked from brooke/mandel-6502
runs but doesn't work
This commit is contained in:
parent
45c5a4cb2d
commit
0cde31905e
1 changed files with 3 additions and 2 deletions
5
mandel.s
5
mandel.s
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue