0000102
).
The J-type instruction format and one example jump instruction are given as follows:
j addr # skip to label “addr” |
002
.
The next lower 26 bits of this 32-bit address come from the 26-bit immediate field in the instruction.
The upper 4 bits of the address that should replace the PC come from the PC of the jump instruction plus 4.
Thus we can implement a jump according to the Next PC block by storing into the PC the concatenation of
You all look tired. Let’s call it a day (stop working). |