| Instruction formats: J-type | |||||||||||||
| J-type: jump | |||||||||||||
| j target # jump to target address | |||||||||||||
| 000010 | 01000 | 01001 | 01010 | 00000 | 100001 | ||||||||
| b31-26 | b25-0 | ||||||||||||
| opcode | target | ||||||||||||
| semantics: | |||||||||||||
| PC <- PC31-28 :: IR25-0 :: 00 | |||||||||||||
| update the PC by using: | |||||||||||||
| - upper 4 bits of the program counter | |||||||||||||
| - 26 bits of the target (lower 26 bits of instruction register) | |||||||||||||
| - two 0's | |||||||||||||
| (creates a 32-bit address) | |||||||||||||
| Why 2 0's? | |||||||||||||