Question: Hello, I need help completing this problem. My class hasn't gone over it yet but I want to get ahead. Thanks! Task 3: Write an
Hello, I need help completing this problem. My class hasn't gone over it yet but I want to get ahead. Thanks!
Task 3: Write an assembly program that computes the value of a function. Your program will take two inputs, which you can assume have already been stored in R16 and R17 prior to your program running. Without modifying R16 or R17, make a calculation using the following equation. f(x) = EX.(x + k)* - x where x=R16 and n=R17 Store the value f(x) in SRAM at address 0x100. You can ignore overflows and carry bits. Task 3: Write an assembly program that computes the value of a function. Your program will take two inputs, which you can assume have already been stored in R16 and R17 prior to your program running. Without modifying R16 or R17, make a calculation using the following equation. f(x) = EX.(x + k)* - x where x=R16 and n=R17 Store the value f(x) in SRAM at address 0x100. You can ignore overflows and carry bits
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
