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 mentory "words" (memory is generalify
addressed byte by byte and assume that a word is 4 bytes) and address for "a" is
00000ec00. A so, we have a=24,b=110, and c=10 at the starting time. Assume
that the first instruction of the code is stored in 0x00006738. Also, each instruction has
the opcode in the first byte (most significant byte) and the remaining 3 bytes specify
the correspond ng address, The opcode for store is 5, load is 4, and add is 6.
000006938 load a
Ox0000013c add b
Or0000b140 store c
a. Show the menory addresses and contents for all the instructions and data involved.
Use the format as follows to express your answer fut the foliowing is not the answer).
For a cata, use hexadecimal representat on [ Marks]
2nit
Addresses conterts
Ox00c021040600000Cl
Ox000021080x 00000002
b. Write the micro structions for the code segment. Assume that current PC
(program counter) is 0 ro000b 138. For each micro-mstruction, also indicate the data
that is translerred of a is a merrory access), For all data, use the hexadecimal
representation. The following wrethe finst two micro wintructions and the data
transtered Comp ele the rest Marks]
MetsiOndar Asoesument 620et 2031
Consider the following pseudo assembly code for

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!