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

R17, $10

1

clr

R16

2

loop

add

R16, R17

3

dec

R17

4

brne

loop

2