Question: 3. (10) The script below demonstrates a very basic loop structure. Indicate the value of R1 after 5 iterations of the loop. (Given the
3. (10) The script below demonstrates a very basic loop structure. Indicate the value of R1 after 5 iterations of the loop. (Given the very first line of code, you can assume R1 starts out as 0x00) (NE means not equal) (Review slide 8 of 2_3171 to recall how the carry (c) bit is effected) MOV R1, #0xF3 MOV RO, #0x00 LOOP LSRS R1, R1, %230x01 ADC RO, RO, #0x00 CMP R1, #0x00 BNE LOOP END The value of RO after iteration 1: The value of RO after iteration 2: The value of RO after iteration 3: The value of RO after iteration 4: The value of RO after iteration 5: Additionally, in a sentence, describe what this function is doing:
Step by Step Solution
There are 3 Steps involved in it
The script initializes R1 with the value 0xF3 and R0 with ... View full answer
Get step-by-step solutions from verified subject matter experts
