I've been trying to understand how to implement fixed point arithmetic in C, but I can't wrap my head around it.
Are there any specific C tutorials around?
I'd like to start experimenting with a sine table (an analog clock demo, for example) but I'm kinda lost without decimals.
One possible approach would be working with values 100x larger and divide them to obtain the x,y pixel values.
Of course, for performance reasons, instead of 100x, I would actually use a power of 2.
I guess that would work, but I would still like to learn how to do fixed-point arithmetic in C on the NES.
As always, many thanks in advance!
