Question: Read the three numbers from the user. We'll need three registers to hold these two numbers. We can use $t 0 and $t 1 for

Read the three numbers from the user. We'll need three registers to hold these
two numbers. We can use $t0 and $t1 for this.
a. Get first number from user, put in to $t0.
i. load syscall read_int into $v0,
ii. perform the syscall, iii. move the
number read into $t0.
b. Get second number from user, put into $t1
i. load syscall read_int into $v0,
ii. perform the syscall, iii. move the
number read into $t1.
c. Get third number from user, put into $t2
i. load syscall read_int into $v0,
ii. perform the syscall, iii. move the
number read into $t2.
2. Compute the summation $t0+ $t1+ $t2. We'll need a register to hold
the result of this summation. We can use $t3 for this

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!