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

1

lds

R17, $0400

3

loop

inc

R17

4

dec

R16

5

brge

loop

3