Username:
Password:
Last edited on 28 Nov 2025 by superogue. See all edits
Here is a 16 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! :)
thanx !!!
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
4 comments
Here is a 16 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! :)
thanx !!!
Here the version for Atari Jaguar (24Bytes)
movei #sinus,r15 ; 6
moveq #16,r6
shlq #3+2,r6
movei #127,r2 ; 6
moveq #0,r3
singen:
subq #2,r2
move r3,r0
store r3,(r15)
neg r0
add r2,r3
store r0,(r15+r6)
jr ne,singen
addqt #4,r15