# ans_quiz1 - funct 8 32-20 21 9 32-8 9 17 34-35 22 8-32 19 8...

This preview shows page 1. Sign up to view the full content.

1. 0 ADD \$t0, \$s2, \$s3 ; \$t0 = g + h 4 ADD \$t1, \$s4, \$s5 ; \$t1 = i + j 8 SUB \$s1, \$t0, \$t1 ; f = (g + h) – (i + j) 12 LW \$t0, 32(\$s6) ; \$t0 = A[8] 16 ADD \$s2, \$s3, \$t0 ; g = h + A[8] 20 BEQ \$s1, \$s3, label ; jump to label if (f == h) 24 SUB \$s2, \$s3, \$t0 ; g = h – A[8] label: 28 SW \$s2, 48(\$s6) ; A[12] = g 2(a) op rs rt rd shamt
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: funct address 18 19 8 32----20 21 9 32----8 9 17 34----35 22 8------------32 19 8 18 32----4 19 17------------28 19 8 18 34----43 22 18------------48 2(b) 000000_10010_10011_01000_00000_100000 000000_10100_10101_01001_00000_100000...
View Full Document

## This note was uploaded on 08/23/2009 for the course DEE 4641 taught by Professor Cwliu during the Fall '08 term at National Chiao Tung University.

Ask a homework question - tutors are online