Open zu2 opened 3 weeks ago
typo.
--- support6800/mulf_old.s 2024-10-30 23:49:23
+++ support6800/mulf.s 2024-10-30 23:47:24
@@ -138,8 +138,8 @@
staa @hireg
ldaa 16,x
staa @hireg+1
- ldab 19,x
- ldaa 18,x
+ ldab 18,x
+ ldaa 17,x
jsr __mull
; result += (...) >> 8
tsx
This is based on the existing __mulf.c. It is somewhat redundant, but fast enough.
Replacing __mull with a faster one will make it even faster, but it will use more memory.