7 ms·
I’m writing a pinball game in assembly for the original Gameboy, and recently had to hand-craft multiply, division and cosine routines to trade off accuracy for
by sunpazed 3y ago
I’m writing a pinball game in assembly for the original Gameboy, and recently had to hand-craft multiply, division and cosine routines to trade off accuracy for spare cycles. Something like this would have come in handy!!
- OnlyMortal 3y agoI assume you used a table of cosine values bit shifted?
- deleted 3y ago[deleted]
- sunpazed 3y agoYes, LUTs are your friend. I used to code scene demos on the C64 back in the 90s.
- OnlyMortal 3y agohttp://www.6502.org/source/floats/wozfp1.txt http://www.6502.org/source/floats/wozfp1.txt Might be useful.
- OnlyMortal 3y agoLikewise on the Amiga doing 3D vector demos.