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: (IEEE754 single precision floating point) to base 10. b. (10 pts.) Convert 5 1(base 10) to IEEE754 single precision floating point format. Q4. (20 pts.) Explain what the following MIPS instruction sequence does. Comment each line. Make suggestions to optimize the code in terms of the number of instructions being executed both within and outside the loop. add $t0, $zero, $zero # add $t1, $zero, $zero # loop: beq $a1, $zero, finish # nor $t2, $a0, $zero # addi $t2, $t2, 1 # add $t0, $t0, $t2 # sub $a1, $a1, 1 # j loop # finish: addi $t1, $t1, 100 # nor $t1, $t1, $zero # addi $t1, $t1, 1 # add $v0, $t0, $t1 # Q5. (20 pts.) Write a sequence of MIPS instructions that compares two unsigned integer numbers stored in memory locations X and Y , and returns the larger value in $v0 . The program should return 1if the two values are equal....
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