Quiz 2 - Points Awarded Points Missed Percentage 5 1 83 1...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon
Points Awarded  5 Points Missed  1 Percentage  83% 1. For the assembly code given below, what is the value of the 16-bit offset in the instruction 'beq'? beq $t0, $t1, label sub $t2, $t0, $t1 addi $t2, $t2, 4 sw $t2, 0($s0)  label: . ..
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
A. 0x 00 10 B. 0x 00 0c C. 0x 00 03 D. 0x 00 04 Points Earned: 1/1 Correct Answer: C Your Response: C 2. We want to translate the pseudo instruction 'bge $s1, $s2, Lb1' into two real MIPS assembly  instructions. Which one is correct?
Background image of page 2
A. slt  $t 0,  $s 2,  $s 1 bn $t 0,  $z er o,  Lb 1 B. slt  $t 0,  $s 1,  $s 2 be $t 0,  $z er o,  Lb 1 C. slt  $t 0,  $s 2,  $s 1 be
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Points Earned: 1/1 Correct Answer: B Your Response: B 3. If the content of register $s0 is 0x00400040, and the memory state is as shown below,  after executing the two assembly instructions  lb $t1, 0($s0)  sb $t1, 5($s0)  what is the value at the memory location 0x00400044 (hint: remember MIPS is big endian)?
Background image of page 4
A. 0x
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 10

Quiz 2 - Points Awarded Points Missed Percentage 5 1 83 1...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online