Hello there,
I had this idea to implement a very simple 6502 routine to compute step by step in BCD mode, the sine and cosine of a given angle using the CORDIC method and the common formulas Cos(A+B) and Sin(A+B). Values for the angles B would be chosen in such way that Tan(B)=1, 0.5, 0.25, 0.125 etc.
Angles would be expressed in degrees with at least three "decimal" bytes stored in memory in the big endian order.
The starting angle would be 0 degrees. Cos(0)=1 and Sin(0)=0, but they would be multiplied with the constant 0,60725293500899 simplified in the routine with three bytes 60, 72 and 53.
My question might look a little bit silly but I assume that something similar has already been implemented in the past. Would anyone know where I could find a routine that performs this ? I guess I will save some time and cells to my brain