Yes.
Let
us write a program that reads integers
from the user and adds up those integers x
that are in the range -32 <= x <= +32
main: li $v1,0 # zero the sum loop: . . . . # prompt the user for input li $v0,5 # read the integer syscall # into $v0 ____ $v0,____,done # while ( $v0 != -999 ) ____ $v0,____,out # less than -32 ____ $v0,____,out # greater than 32 addu $v1,$v1,$v0 # if in range add # else skip out: b loop done: . . . . # write out result
(For this chapter, load delays and branch delays have been turned off in the simulator.)
Fill in the blanks