8. EXAMPLE
f = (g + h) – (i + j)
(g + h) add $s1,$t0,$t1
(i + j) add $s2,$t2,$t3
sub $s0,$s1,$s2
sw $s0,16($s4)
g lw $t0,20($s4)
h lw $t1,24($s4)
i lw $t2,28($s4)
J lw $t3,32($s4)
9. LOGICAL INSTRUCTIONS
AND
SHIFT LEFT LOGICAL
SHIFT RIGHT LOGICAL
AND IMMEDIATE
and $s1,$s2,$s3
sll $s1,$s2,10
srl $s1,$s2,10
andi $s1,$s2,20
$s1 = $s2 & $s3
$s1 = $s2 << 10
$s1 = $s2 >> 10
$s1 = $s2 & 20
12. EXAMPLE
if (i==j)
f = g + h;
else
f = g – h;
lw $t0,28($s4)
lw $t1,32($s4)
lw $t2,20($s4)
lw $t3,24($s4)
bne $t0,$t2,Else
add $s0,$t2,$t3
j Exit
Else sub $s0,$t2,$t3
Exit sw $s0,16($s4)
Editor's Notes
Notes to presenter:
Description of what you learned in your own words on one side.
Include information about the topic
Details about the topic will also be helpful here.
Tell the story of your learning experience. Just like a story there should always be a beginning, middle and an end.
On the other side, you can add a graphic that provides evidence of what you learned.
Feel free to use more than one slide to reflect upon your process. It also helps to add some video of your process.