- #1
brad sue
- 281
- 0
hi please I would some help with the MIPS hazard.
I see an hazard at the instructions that are bolded
What I would do is take the underlined instructions and put it like this:
Do I get it right? do I miss another hazard?
thank you
b
Code:
Loop:
add $t0, $t0, $v0
[B]addi $v0, $v0, -1
bnez $v0, Loop[/B]
li $v0, 4
[U]la $a0, result[/U]
syscall
li $v0, 1
move $a0, $t0
syscall
b main
I see an hazard at the instructions that are bolded
What I would do is take the underlined instructions and put it like this:
Code:
addi $v0, $v0, -1
la $a0, result
bnez $v0, Loop
Do I get it right? do I miss another hazard?
thank you
b