Thanks for the input
Don't bother with 'A', I'm only looking onto that after 'C' (should be 2D rotation, lool), but first I need to code the ArcTangent function, and I'm not sure if I should use the commented method* (heavy on MULS, DIVS and lots of regs) or some kind of LUT + linear interpolation.
The entire variable section (E0FE00~E0FFFF) is cleared now.
Changed src compression to RAR and now the screen 'A' mapping is generated and decompressed on loading (saved ~12kB)
Reupped bin and JorgeSrc.zip (It was very outdated)
*
Code: Select all
;ArcTg: Gives the angle, 0~FF, both catets in d2(yyyy:xxxx), adjacent is in lower word;
; Must be signed values to give out correct angle
; Theta = ArcTg(Y/X), Z = Y/X
;
; { (609Z+164Z³) / (15+9Z²) , Z & [-1,1]
;ArcTg(Z) ~= { 64 - ArcTg(1/Z) , Z > 1
; { -64 - ArcTg(1/Z) , Z < -1
;
;(binary angle: 0=0º; 64=90º; 128=180º; 255=359º)
EDIT: Little update 8/02/2k09 (fixed some bugs in the rotation code, but it doesn't revolve around properly yet

)