Digital and Embedded Systems, Bräunl 2015
In an Atmel controller, the memory and accumulator contents are initially:
[$C476] = $24, [$0010] = $31, [$000A] = $14, [R16] = $81, [R17] = $0A, [R18] = $24
What is the hex value in R16 after executing each of the following instructions separately?
(Always using the the same memory and accumulator contents as shown above)
a |
subi |
R16, $31 |
|
b |
add |
R16, R17 |
|
c |
or |
R16, R18 |
|
d |
cpi |
R16, $10 |
|
e |
inc |
R16 |
|
f |
andi |
R16, $40 |
|