Close

Assembly: sine works! but not cosine...

A project log for Arduino Graphics Card

Advanced graphics for anything from homebrew computers to weather reporting boxes and everything that can communicate over 3.3-5v UART.

Dylan BrophyDylan Brophy 04/03/2018 at 21:170 Comments

Doing trig in assembly

The sine function actually works!  But cosine doesn't.

I suspect it is a problem with signed multiplication/division.  It *should* work... But ya never know.

I have tried other angles and different multipliers (instead of 16384)

I think after this my 3d rendering might actually work in assembly!

EDIT : im posting latest code on GitHub if you are interrested. Check project page for the link.

Discussions