Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I have the following: For Pseudo Direct Jump addressing, what would an example o

ID: 3703443 • Letter: I

Question

I have the following:

For Pseudo Direct Jump addressing, what would an example of the address in the instruction contain? In the top loop example is the actual address in the instruction 20000 or 80000? What would it contain before it is multiplied by 4?

Thanks

Addressing Example Assume Loop at location 80000 PC value when bne is executed (0x80010) + 2 x 40x80018 80000 Loop: sl $t1, $s3, 2 80004 80008 8000C 80010 80014 80018 Exit: add $t1, $t1, $s6 lw $t0, 0($t1) bne $t0, $s5, Exit addi $s3, $s3, 1 Loop Il bne Sto, $s5, 2 //j 20000 [31:28] of PC value when j is executed (0x0) : 0x20000 x4 0x80000

Explanation / Answer

j Loop label 'Loop' is at address 80000 which is (4*20000) actual value in the instruction is address/4 which is 20000 so, to answer your question, actual value in the instruction is 20000