Is it possible to use the branch on equal beq mips

This preview shows page 3 - 4 out of 4 pages.

MIPS assembly instruction to set the PC to the address as 0x4000 0000? Is it possible to use the branch-on-equal (beq) MIPS assembly instruction to set the PC to this same address?
2.26 Consider the following MIPS loop:LOOP: slt $t2, $0, $t1 beq $t2, $0, DONEsubi $t1, $t1, 1addi $s2, $s2, 2j LOOPDONE:2.26.1 [5] <§2.7> Assume that the register $t1 is initialized to the value 10. What is the value in register $s2 assuming the $s2 is initially zero?
registers $s1, $s2, $t1, and $t2 are integers A, B, i, and temp, respectively.i = 10;do{B += 2;i = i – 1} while (i > 0)2.26.3 [5] <§2.7> For the loops written in MIPS assembly above, assume that the register $t1 is initialized to the value N. How many MIPS instructions are executed?Instructions are executed 5N times.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture