Programming a(b+c)
Assume a, b and c are declared variables and that the result is saved in $v0
lw $t0,a # Get value of a
lw $t1,b # Get value of b
lw $t2,c # Get value of c
add $t1,$t1,$t2 # Add b and c
mult $v0,$t0,$t1 # Multiply result times a
This 3-operand multiply pseudoinstruction might be generated as ...
mult $t0,$t1 # Do multiply
mflo $v0 # Get result assuming < 2x109
How can one test to see if the number was small enough?