Faster imul16 routine

Improves runtime from 16.24 ms/px to 14.44 ms/px

This uses a routine found on Everything2:
https://everything2.com/title/Fast+6502+multiplication

which uses a lookup table of squares to do 8-bit imuls,
which are then composed into a 16-bit imul
This commit is contained in:
Brooke Vibber 2023-02-11 12:24:48 -08:00 committed by Brooke Vibber
commit 5637783529
5 changed files with 183 additions and 81 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
*.o
*.xex
tables.s
.DS_Store