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

clr

R16

1

clr

R17

2

loop

add

R16, R17

3

inc

R17

4

cpi

R17, $10

5

brlt

loop

2