Question: Question [1] (24*1.25 = 30 points) Select the correct answer for each of the following questions: PART A 1. (0x000000000) is a valid machine code

 Question [1] (24*1.25 = 30 points) Select the correct answer for
each of the following questions: PART A 1. (0x000000000) is a valid

Question [1] (24*1.25 = 30 points) Select the correct answer for each of the following questions: PART A 1. (0x000000000) is a valid machine code in MIPS. A. True B. False 2. After executing the instruction (ori Ss0,80,0x22), the content of Ss0 will be A. 0x22 B. 0x00 C. 0x00000022 C. 0x00000000 3. The immediate operand of the ori instruction is a signed integer A. True B. False 4. Suppose that Ssl contains 0x00040000. Use the memory shown below to find the MIPS instruction that copies the value 0x00000004 from memory to Ss. Memory Addresses 00000005 000400 14 00000004 00040010 00000003 0004000C 00000002 00040008 00000001 00040004 00000000 00040000 A. lw $sl, 10(550) B. lw $50, 10(Ss1) C. lw $sl. 16(580) D. lw $50, 16(Ss1) 5. Consider the following MIPS instructions: addi Ss0, 0,4 ori Ss1, 50, 1 sil Ss1, S1, 2 bne S0, S1, exit addi Ss1, S1,1 add Ss1, Ss1, $50 exit: sub Ss1, S1, SO The machine code for the (bne Ss0, Ssl, exit) instruction in hexadecimal is A. Ox16111002 B. 0x16010002 C. Ox16110002 D. None of the above 6. Consider the following high-level code: x=y-A[B[51]; Assume that the variable x is associated with Ss4 and the variable y is associated with $85. Assume also that the address of the arrays A and B are in registers Ss0 and Ssl. respectively. Which of the following instructions translate into the above high-level code into MIPS assembly code: A. lw $$4.0(Ss1) add Ss4,S4,S50 lw $54, 0(554) sub S4,S5,S54 B. lw $4,5(Ss1) sll Ss4.Ss4,2 add Ss4, S4,S50 Iw Ss4, 0(554) sub $54,555,854 C. lw $s4.20(Ss1) sil Ss4.Ss4.2 add $4,S4,S50 lw $84, 0(554) sub Ss4.Ss5.Ss4 D. None of the above

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!