Quiz 1 - Points Awarded 6 Points Missed 0 Percentage 100%...

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

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Points Awarded 6 Points Missed 0 Percentage 100% 1. Assuming variable a is stored in register $s1, b is stored in $s2, and c is stored in $s3 and the result is to be stored in $s0, what is the assembler equivalent to the C statement: z = a - ( b + c ) ? A. ad d $s 0, $s 2, $s 3 su b $s 0, $s 0, $s 1 B. ad d $s 0, $s 2, $s 3 su b $s 0, $s 1, $s C. ad d $s 2, $s 3, $s The answer is add $s0, $s2, $s3 sub $s0, $s1, $s0 Points Earned: 1/1 Correct Answer: B Your Response: B 2. Assuming the register $s4 holds 12(decimal) and the data in the memory array is as in the figure below, what is the value loaded into $t0 by the instruction: lw $t0, 8($s4) A. 0x FF 00 FF FF B. 0x 00 00 FF FF C. 0x FF FF 00 00 D. 0x 10 FF FF 00 The answer is 0xFFFF0000 Points Earned: 1/1 Correct Answer: C Your Response: C 3. Assume the memory array in question 2, and that the register $s2 holds 4, what is the memory location...
View Full Document

Page1 / 11

Quiz 1 - Points Awarded 6 Points Missed 0 Percentage 100%...

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