Commit graph

83 commits

Author SHA1 Message Date
fe23193ce9 woot this one works but is too huge 2023-01-07 18:33:06 -08:00
7da3993bfd wip 2023-01-07 18:30:32 -08:00
a6c49a2ef9 oh ho 2023-01-07 17:52:14 -08:00
d32b630320 woo 2023-01-07 17:37:41 -08:00
49831dc048 wip logs 2023-01-07 17:20:18 -08:00
b36ab77e97 update readme 2023-01-06 17:28:35 -08:00
32bd5a540c flesh out the mandelbrot iteration loop
some bits i missed increased total to:
1939 - 3007 cycles per iteration

probably still buggy, will test later :D
2023-01-06 17:18:13 -08:00
3d94a9b5d4 show range 2023-01-05 11:58:32 -08:00
c7e7129eb2 whoops missed a few cycs 2023-01-05 11:55:41 -08:00
2340f8210e update round & sketch out the iter cycle count 2023-01-05 11:36:42 -08:00
7f70f14fc2 one last round sketch
combining copy and round
2023-01-05 11:17:13 -08:00
7ac0df0343 Added two version of 16-bit rounding
round16_incdec uses inc and dec
round16_addsub uses adc and sbc

the incdec version is the same when no rounding is needed
but saves about 8 cycles on the rounding cases, for an
average savings of 4.5 cycles for randomly distributed inputs

untested so far
2023-01-05 09:06:07 -08:00
6edd2f71d9 whoops added wrong 2023-01-04 21:26:47 -08:00
373e1441d3 comment tweaks 2023-01-04 21:09:45 -08:00
3a0545b673 tyop 2023-01-04 21:04:53 -08:00
1408855eed Note how many cycles loop unrolling saves
+4 cycles one-time setup

ldx #8 ; 2 cyc for first 8
ldx #8 ; 2 cyc for second 8 (different shift behavior)

-5 cycles/iter to get bit now

lsr arg + 1 ; 5 cyc
rol arg     ; 5 cyc

+10 cycles/iter to get the bit in a loop

dex ; 2 cyc
bne ; 2 cyc

4 cycles/iter for the loop

4 + (14 * 16) = 4 + 224 = 228
2023-01-04 21:02:18 -08:00
519f8ad635 whoops 2023-01-04 20:57:07 -08:00
efd722eeb2 update cycle count for imul16 2023-01-04 20:37:16 -08:00
41915cf122 save a few bytes by removing a dupe tail from two cases now 2023-01-04 20:33:42 -08:00
38091e535f hmm 2023-01-04 20:31:39 -08:00
58519381bf hmm 2023-01-04 20:12:34 -08:00
fa599be775 wip fix 2023-01-04 19:52:56 -08:00
9682b4a6b3 readme 2023-01-04 19:15:26 -08:00
5605cc4652 woo 2022-12-30 18:25:43 -08:00
2d67cdc498 woo 2022-12-30 18:21:31 -08:00
4b1001bfdc annotate cycle counts 2022-12-30 17:33:18 -08:00
6583dc3680 wip 2022-12-30 01:05:52 -08:00
f50882a24d maybe 2022-12-30 00:55:48 -08:00
27d046011e looks workable 2022-12-30 00:43:44 -08:00
fe9a35353b works for 3 * 5 = 15 2022-12-29 20:32:58 -08:00
b307f98760 nice 2022-12-29 20:18:21 -08:00
ca877ef44d hmm 2022-12-29 03:37:51 -08:00
e6c05d0f66 stuff 2022-12-28 21:08:16 -08:00