“Complex” Example Revisited
Desired result:
MIPS assembly:
add $s0, $s1, $s2
sub $s0, $s0, $s3
sub $s0, $s0, $s4
f = (g + h) - (i + j)
f, g, h, i, j are in registers $s0, $s1, $s2, $s3, $s4, respectively
Previous slide
Next slide
Back to first slide
View graphic version