Question: Lab 2 . asm codes are here: #Lab 2 . data arrayOne: . byte 0 xaa, 0 x 2 2 , 0 xbb , 0

Lab2.asm codes are here:
#Lab 2
.data
arrayOne: .byte 0xaa,0x22,0xbb,0x44
.text
li $s2,0x3344
li $s3,0x55
la $s5,arrayOne
xori $s1,$s2,0xaa55
and $s4,$s1,$s3
lb $t1,2($s5)
sb $s4,1($s5)
Part A: Single Cvcle Processor
Figure A: Single Cycle Processor Datapath
Run the given Lab2.asm file on MARS simulator. Using the Tools->MIPS X Ray, you would be able to see the datapaths of the instructions. Based on the above figure, what will be the values of the followings when the following instructions are executed:
Hint:
Identify the instruction during the specified cycle.
Identify the datapath of the identified instruction, then determine the values of the labels for that datapath.
The datapath follows the instruction class datapath, i.e.,RI??Jload? store.
If the datapath does not cross through the label, mark it as 'x'.
\table[[No.,Label,Value during cycle 5,Value during cycle 7],[1,a,,],[2,b,,],[3,c,,],[4,d,,],[5,e,,],[6,f,,],[7,g,,],[8,h,,],[9,i,,],[10,j,,],[11,k,,],[12,m,,],[13,n,,],[14,p,,],[15,q,,],[16,r,,],[17,s,,],[18,RegDst,,],[19,Branch,,],[20,MemRead,,],[21,MemtoReg,,],[22,ALUOp,,],[23,MemWrite,,],[24,ALUSrc,,],[25,RegWr,,],[26,PCSrc,,],[27,Zero,,]]
 Lab2.asm codes are here: #Lab 2 .data arrayOne: .byte 0xaa,0x22,0xbb,0x44 .text

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 Databases Questions!