Professional Documents
Culture Documents
Assignment 02
Assignment 02
Q uestion 1:
Find the MIPS instruction represented by the following machine code:
Q uestion
2:
Translate the following statements into MIPS assembly language. Assume that a, b, c,
and d are allocated in $s0, $s1, $s2, and $s3.
Q uestion 3:
Translate the following MIPS assembly language program to MIPS machine language
and discuss its addressing mode diagrammatically.
a. lw $t2, 32($0)
b. addu $s0, $s1, $s2
c. subi $t0, $s3, -12
d. sub $t0, $t3, $t5
e. j 10001