This preview shows pages 1–6. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: instruction. slt $t3, $t1, $t2 # sltu $t4, $t1, $t2 # . Q3. (20 pts.) Answer both parts. a. (10 pts.) Convert 11011001011000000000000000000000 (IEEE754 single precision floating point) to base 10. b. (10 pts.) Convert 20 1(base 10) to IEEE754 single precision floating point format. Q4. (20 pts.) Convert the following fragment of C code to MIPS instructions. Comment all lines, and explain how your code works. while ( a < b ) do { a = a + 1; b = b  1; } The register allocation to be used is as follows: $a1=a , and $a2=b . Q5. (20 pts.) Comment all the lines in the following MIPS instruction sequence. Explain what the program does (Assume that $t1=$t2=0 initially) bge $t8, $zero, this sub $s0, $zero, $t8 addi $t1, $t1, 1 j next this: addu $s0, $t8, $zero addi $t2, $t2, 1 next:...
View
Full
Document
This note was uploaded on 08/22/2010 for the course CDA 3101 taught by Professor Staff during the Fall '07 term at University of Central Florida.
 Fall '07
 Staff

Click to edit the document details