This preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: precision floating number can represent: 3. Then, you may help the students to review the instructions we have learned: add, sub, lw, sw, bne, beq, j, addi, and, or, xor, nor, andi, ori, xori, sll, srl then ask them to write a code segment to do 38 104 128 ) 127 254 ( 23 10 3.4028235 516925440 1704183484 3852885981 3402823466 2 2 2 ) 2 1 1 ( == +38 126 ) 127 1 ( 10 175494351 . 1 2 2 ) . 1 ( = + if (($t0 + $t1) == ($t2 / 2)) $t0 = A[$t2]; else A[$t2] = $t0 &amp; $t1; where the starting address of array A is in $s0 , and A[$t2] represents the 4 th element in A if $t2 == 4 . You may write down the code and let me have a look before next Monday. Note that with this little problem, we want to reinforce the ideas of 1. add 2. shift 3. load and store, array access 4. ifelse in assembly...
View
Full Document
 Spring '09
 Binary numeral system, Decimal, Numeral system, following decimal numbers

Click to edit the document details