Question: 1-4. This assembly code loads value $7 to the memory address 0x0200 and 0x220. Then the content of the location 0x220 is decremented continuously until

1-4. This assembly code loads value $7 to the memory address 0x0200 and 0x220. Then the content of the location 0x220 is decremented continuously until the value hits zero. lds r17, $7 sts 0x200,r19 ldi rl, 0x200 sts 0x220,rl dec rl brne PC-3 ; load $7 to rl7 store r17 value to 0x200 ;load the content of store the value of rl to 0x220 ; decrement by 1 ; return to the step with the current program counter -3 Q. What is the syntax error in this code? Q. How to fix the error? Show the modified code and the initial and the final values of the memory location 0x200 and 0x220
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
