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

lds

R16, $0400

2

clr

R17

3

loop

add

R16, R17

4

inc

R17

5

cmp

R17, $14

6

brlt

loop

3