From c7e7129eb2434d42d86e42e67fd0e86fc05bba7a Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 5 Jan 2023 11:55:41 -0800 Subject: [PATCH] whoops missed a few cycs --- mandel.s | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mandel.s b/mandel.s index b69907c..e358bee 100644 --- a/mandel.s +++ b/mandel.s @@ -192,7 +192,7 @@ next: ; zx_zy = 0 loop: - ; 1627 - 2603 cyc + ; 1652 - 2651 cyc ; iters++ = 2 cyc @@ -207,7 +207,9 @@ loop: ; dist = zx_2 + zy_2 = 38 cyc ; if dist >= 4 break, else continue iterating = 7 cyc - ; shift and round zx_2, zy_2, dist up to 4.12 = 2 * (20 + 5) - 2 * (20 + 28) = 50 - 96 cyc + ; shift and round zx_2 to 4.12 = (20 + 5) - (20 + 28) = 25 - 48 cyc + ; shift and round zy_2 to 4.12 = (20 + 5) - (20 + 28) = 25 - 48 cyc + ; shift and round zx_zy to 4.12 = (20 + 5) - (20 + 28) = 25 - 48 cyc ; if may be in the lake, look for looping output with a small buffer ; as an optimization vs running to max iters