Question: addi $2, $zero, 1 addi $8, $zero, 0 TOP: beq $8, $1, DONE slt $9, $2, $8 bne $9, $zero, NEEDADD sub $2, $2, $8

addi $2, $zero, 1

addi $8, $zero, 0

TOP: beq $8, $1, DONE

slt $9, $2, $8

bne $9, $zero, NEEDADD

sub $2, $2, $8

j ENDLOOP

NEEDADD: add $2, $2, $8

ENDLOOP: addi $8, $8, 1

j TOP

---------------------------------------------------------------------

Assume that the sequence of instructions above is loaded into memory at address 0xB0000000. What is the value of the address field of the instruction j ENDLOOP instruction? (HINT: It is not 0xB0000018)

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!