Question: Consider the following pseudo assembly code for computing c = a + b . Assume that a , b , and c are assigned to
Consider the following pseudo assembly code for computing c a b Assume that a b and c are assigned to consecutive memory "words" memory is generally addressed byte by byte and assume that a word is bytes and address for a is xec Also, we have a b and c at the starting time. Assume that the first instruction of the code is stored in xb Also, each instruction has the opcode in the first byte most significant byte and the remaining bytes specify the corresponding address. The opcode for store is load is and add is
xb load a
xbc add b
xb
store c
a Show the memory addresses and contents for all the instructions and data involved. HRUse the format as follows to express your answer but the following is not the answer
For all data, use hexadecimal representatio
Addresses
contents
x
x
x
x
b Write the micro instructions for the code segment. Assume that current PC program counter is xb For each microinstruction, also indicate the data is transferred if it is a memory access For all data, use the hexadecimal representation. The following are the first two microinstructions and the data transferred. Complete the rest. Marks
s that
Microinstructions
Data
PCMAR
xb
HRMMBR
xec
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
