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

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -