Loop:
beq $9,$0,End
addi $8,$8,$10
addi $9,$9,-1 ###1
j Loop ###2
End: ###3
But on the 2nd midterm, # 3, it has
run3:
add $s0, $s0, $t9
bne $s0, $0, run 3
j init3
So, if we start at the instruction after bne, which is j init3, and
then go back up 2 lines to the start of run3, isnt this -2, not -1?
Do we only go down one instruction if the jump is down and not up?
clarification please
"j.cal" <jc...@umail.ucsb.edu> wrote:
--
Maria Medina
mgme...@umail.ucsb.edu
--
Maria Medina
mgme...@umail.ucsb.edu
The immediate for the branches is always a number instructions and not
an absolute address.