Digital and Embedded Systems, Bräunl 2015
What is the value in PC after executing each instruction for the first time in the following program?
Use the information from the Atmel instruction set summary given out in lectures. Remember that PC starts at 0 in the Butterfly.
|
|
|
|
main |
ldi |
R16, $10 |
|
|
|
|
|
|
lds |
R17, $0400 |
|
|
|
|
|
loop |
inc |
R17 |
|
|
|
|
|
|
dec |
R16 |
|
|
|
|
|
|
brge |
loop |
|
|
|
|
|