Problem:
Question 1- In a MIPS32 program, the instruction at memory address 0x0040_8400 is j end_if which jumps to the label end_if which is at memory address 0x0040_928C. What would be the encoding of this instruction? Express your answer as an 8-hexdigit integer. For full credit explain how your answer was obtained.
Question 2- In a MIPS32 program, the instruction at memory address 0x0040_8400 is beq $t0, $t1, loop which jumps to the label loop which is at memory address 0x0040_81E8. What would be the encoding of this instruction? Express your answer as an 8-hexdigit integer. For full credit explain how your answer was obtained.
Any help would be greatly appreciated!