ok two things wrong:
1) bit masks are backwards 2) iter always returning 0
This commit is contained in:
parent
d36667938d
commit
dbbec8ed6d
1 changed files with 3 additions and 2 deletions
5
mandel.s
5
mandel.s
|
@ -438,9 +438,9 @@ next:
|
||||||
; dist = 0
|
; dist = 0
|
||||||
; iter = 0
|
; iter = 0
|
||||||
lda #00
|
lda #00
|
||||||
ldx iter - zx
|
ldx #(iter - zx + 1)
|
||||||
initloop:
|
initloop:
|
||||||
sta zx,x
|
sta zx - 1,x
|
||||||
dex
|
dex
|
||||||
bne initloop
|
bne initloop
|
||||||
|
|
||||||
|
@ -705,6 +705,7 @@ loop_sx:
|
||||||
zoom_factor cx, sx, zoom, aspect_x
|
zoom_factor cx, sx, zoom, aspect_x
|
||||||
zoom_factor cy, sy, zoom, aspect_y
|
zoom_factor cy, sy, zoom, aspect_y
|
||||||
jsr mandelbrot
|
jsr mandelbrot
|
||||||
|
inc iter
|
||||||
jsr pset
|
jsr pset
|
||||||
|
|
||||||
clc
|
clc
|
||||||
|
|
Loading…
Reference in a new issue