“Complex” Example with L/S
Desired result:
MIPS assembly:
f = (g + h) - (i + j)
load g, h, i, j, compute, then store f
add $s0, $s1, $s2
sub $s0, $s0, $s3
sub $s0, $s0, $s4
Address
Data
f
200
204
208
212
216
g
h
i
j
Previous slide
Next slide
Back to first slide
View graphic version