diff --git a/mandel.s b/mandel.s index be1f59e..9d3a2a6 100644 --- a/mandel.s +++ b/mandel.s @@ -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