Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assembly code for 68HC11 to calculate sin(x)

What would be the assembly code for 68HC11 to calculate value of sine using either Taylor series or a lookup table?

Display value will be only in integer. How would a lookup table work in this case? How can it be implemented using Taylor series?

like image 754
Digonto Avatar asked Nov 21 '25 08:11

Digonto


1 Answers

If you are looking for a floating point solution, you'll need to implement floating point operations first. That part will be non-trivial on a 68HC11 which has no support for even 32 bit operations. After that, calculating sin is easy but very slow. ;-)

Use a lookup table.

like image 79
Richard Pennington Avatar answered Nov 24 '25 06:11

Richard Pennington