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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I haven’t done any 68HC11 programming in a long time, so I won’t be able to give you exact instructions, but you want to do more-or-less the following:
Specifics would of course depend on input and output ranges, but generally speaking, you’ll use indexed addressing mode, with the index register pointing into the table, or alternatively, extended addressing, with the offset set by modifying the opcode.