How far can command j (jump) jump in memory? (MIPS)

Consider the j (jump) instruction in MIPS. How far can he jump in memory? Will it be 32 bits? Can I get an explanation.


source to share

1 answer

From this page, you will see that the transition command has the following effects:

PC = nPC; nPC = (PC & 0xf0000000) | (target << 2);



is a 26-bit number. This means that the command j

can jump to any absolute address that can be generated from the above operation. So the highest value for target

is 2 26 -1 (0x03FFFFFF) and the highest reachable address is (PC & 0xF0000000) | 0x0FFFFFFC




All Articles