Question: Consider the following Atmel AVR Assembly Language code: SUB R 1 7 , R 1 8 BREQ L 1 LDI R 1 6 , 0

Consider the following Atmel AVR Assembly Language code:
SUB R17, R18
BREQ L1
LDI R16,0xff
JMP L2 ;JMP is an unconditional jump
LDI R16,0x00
STS 0x2F7, R16
a. What does the BREQ instruction do?
b. What effect does the JMP instruction have?
c. Under what circumstances does R16 contain the value 000 when this code is
executed?
d. Under what circumstances does R16 contain the value 0 xFF when this code is
executed?
e. Where (in which memory location) is R16 stored when this code is executed?
Consider the following Atmel AVR Assembly

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 Programming Questions!