Question: Assume that our MIPS processor has six 3 2 bit registers and eight memory locations. Each memory location holds 3 2 bits of data. The
Assume that our MIPS processor has six bit registers and eight memory locations. Each memory
location holds bits of data. The naming convention for the registers and the memory are shown in
the table below.
Table : Register values
Table : Memory values
a Now, let us assume that an array A with integer word elements is stored starting from memory
address zero and another array B with integer word elements is at stored starting from
memory address That is address of is while the address of is With this
information, fill the register value and memory tables for the following sequence of instructions.
etc denote the instruction number while LABEL denotes the target for the branch, if taken.
I lw RR
I : Iw RR
I beq R R Label
I: sw RR
I: j Exit
Label I: sw RR
Exit I :
b What is the equivalent code for the five instructions from part a
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
