ok two things wrong:

1) bit masks are backwards
2) iter always returning 0
This commit is contained in:
Brooke Vibber 2023-01-22 09:34:42 -08:00
parent d36667938d
commit dbbec8ed6d

View file

@ -438,9 +438,9 @@ next:
; dist = 0
; iter = 0
lda #00
ldx iter - zx
ldx #(iter - zx + 1)
initloop:
sta zx,x
sta zx - 1,x
dex
bne initloop
@ -705,6 +705,7 @@ loop_sx:
zoom_factor cx, sx, zoom, aspect_x
zoom_factor cy, sy, zoom, aspect_y
jsr mandelbrot
inc iter
jsr pset
clc