Commit graph

5 commits

Author SHA1 Message Date
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
9682b4a6b3 readme 2023-01-04 19:15:26 -08:00