Question: 5 . . . . . Consider the following pseudo assembly code for computing cab, Assume that a , b , and care assigned to
Consider the following pseudo assembly code for
computing cab, Assume that a b and care assigned to consecutive memory "words" memory is generally addressed byte by byte and assume that a word s 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 x 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
x load a
xc add b
Oxxb store c
aShow the memory addresses and contents for all the instructions and data involved. Use the format as follows to express your answer but the following is not the anower For all data, use hexadecimal representation.
Addresses contents
x
xx marks
b Write the micro instructions for the code segment Assume that current PC program counter is xb For each microinstruction, also indicate the data that 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
Microinstructions
PCMAR
MMBR
Data
xb
xec marks
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
