Well, I'm working on a secret project atm. In order to make this project work, I need both a sine and cosine function that outputs an 8.8 fixed point number from -1 - 1.
My attempt in pure axe is this:
(sin(theta)*256)//128.0->Sine Answer
and
(cos(theta)*256)//128.0->Cosine Answer
The problem is that it only will work for positive sine and cosine answers.
So: does anyone have the hex for a sine and a cosine function for angles 0-255 (as in 256 = 0) that will output an 8.8 fixed point answer to HL and a positive/negative (1=neg,0=pos) flag to where ever axe's r6 (argument 6) is stored.
Thanks in advance!