assembly - How far can the j(jump) instruction jump in memory? (MIPS) -
consider j(jump) instruction in mips. how far can jump in memory? 32bits? can please have explanation.
from this page, you'll see jump instruction has following effects:
pc = npc; npc = (pc & 0xf0000000) | (target << 2); target 26 bit number. means j instruction can jump absolute address can created operation above. largest value target, therefore, 226-1 (0x03ffffff), , highest reachable address (pc & 0xf0000000) | 0x0ffffffc.
Comments
Post a Comment