Question: The following Simple Computer assembly program is stored in instruction memory beginning at address 0 x 0 0 . ldi r 3 , 7 shl
The following Simple Computer assembly program is stored in instruction memory beginning at address x
ldi r
shl r r
shl r r
ld r r
sub r r r
brz r
xor r r r
inc rr
The contents of the following Data Memory locations are known. The contents of any location not listed in the table below are unknown.
Data Memory Address Contents in hex
A
FFFF
E C
C FF
D
Give the machine instruction in hex that will be placed in each of the following program memory locations.
Instruction Memory Address
Machine instruction in hex
Select
Select
Select
After the entire program is executed, what will the following registers contain? Give your answers in hex.
Register
Register contents in hex
R
C
R
FF
R
Immediately after execution of the brz r instruction, what value will be in the program counter?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
