# HW3_sol - 3.7 if(\$t3>= 0 addu \$t2 \$zero \$t3;\$t2 = \$t3...

This preview shows pages 1–2. Sign up to view the full content.

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3.7 if (\$t3 >= 0) addu \$t2, \$zero, \$t3 ;\$t2 = \$t3 \$t2 = \$t3 bgez \$t3, exit ; if (\$t3 >= 0) else sub \$t2, \$zero, \$t3 \$t2 = 0 - \$t3 exit: 3.9 load memory address. address length . 32 bits => . 2 . address (constant) P load upper. lower . index. load P problem: lower P P lower upper . +1. lw . index . 3.23 Current bit Previous bit Operation Reason a i+1 a i a i-1 continuous 0 1 +1 end of continuous 1 1 +1 single 1 1 1 +2 end of continuous 1 1-2 begin of continuous 1 1 1-1 end and then begin of 1 1 1-1 begin of continuous 1 1 1 1 continuous 1 3.26 x = 0 1000_0000 110_0000_0000_0000_0010_0001 (exponent: 1000_0000 – 0111_1111 = 1) y = 0 1000_0001 010_0000_0000_0000_0000_0000 (exponent : 1000_0001 – 0111_1111 = 2) z = 0 0111_1001 110_0000_0000_1010_1100_0000 (exponent : 0111_1001 – 0111_1111 = -6) x * y = 1.11000000000000000100001 *) 1.01000000000000000000000----------------------------------------------------------- + 111000000000000000100001 + 111000000000000000100001-----------------------------------------------------------...
View Full Document

{[ snackBarMessage ]}

### Page1 / 3

HW3_sol - 3.7 if(\$t3>= 0 addu \$t2 \$zero \$t3;\$t2 = \$t3...

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

View Full Document
Ask a homework question - tutors are online