Page 1 of 1

(10 points) Why we use pipelining in MIPS microprocessor? (10 points) The following MIPS assembly program calculates the

Posted: Thu May 05, 2022 1:58 pm
by answerhappygod
(10 points) Why we use pipelining in MIPS microprocessor?
(10 points) The following MIPS assembly program calculates the
sum of first hundred integers. There are two bugs in this program.
Please find and fix them.
.text main:
move $a0, $0
li $t0, 100
loop: add $a0, $a0, $t0
addi $t0, $t0, -1
bez $t0, loop
li $v0, 4
syscall
li $v0, 10
syscall