Question: 2-2. The assembly code is programmed to accomplish two tasks. Task 1) R16 R16 (R16-R18) Task 2) R17 R17+R16 start: ldi r16, $19 ldi r17,

 2-2. The assembly code is programmed to accomplish two tasks. Task

2-2. The assembly code is programmed to accomplish two tasks. Task 1) R16 R16 (R16-R18) Task 2) R17 R17+R16 start: ldi r16, $19 ldi r17, $e5 ldi r18, 3 sub r18, r16 add r18, r16 add r16, r17 end: rjmp end Q. Show the initial value stored at ri6, r17 and r18. What are the final values of ri6 and r17 without correction? Q. What are the expected final values of r16 and r17 based on the given task? How to modify the code to do correct operation? Show the corrected values of r16 and r17 Compare the resulted values: expected values, the values without modification and the values after you modified the code. How can you conclude the result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!