Last edited on 5 Aug 2023 by 100bit.
See all edits
Here is a 18 byte sine-table generator for those that might find it useful. Maybe there are other/better/similar sine-generators out there, but i have not seen one for all 4 quadrants done like this. So i thought i should share...
Thank you for your releases on ATARI ST, hopefully not a one shot event! :)
Here the version for Atari Jaguar (24Bytes) movei #sinus,r15 ; 6 moveq #16,r6 shlq #3+2,r6 movei #127,r2 ; 6 moveq #0,r3singen: subq #2,r2 move r3,r0 store r3,(r15) neg r0 add r2,r3 store r0,(r15+r6) jr ne,singen addqt #4,r15
Update: Thanks to a tip from spkr the singen is now only 16 bytes. As a bonus i've also included the 10-byte sinlike zigzag generator that i've used in Algorift