TSK3000A Core Instruction - JALR

Frozen Content

Instruction:

Jump And Link Register

Assembler Format:

jalr rA

Example:

jalr $4
jalr $30, $4

Description:

Description: Causes the program to jump unconditionally to the address in GPR rA after a delay of one instruction cycle. The address of the instruction following the delay slot is put in GPR rC as the return address from the jump. If rC is omitted from the assembly language instruction, the address stored in general purpose register r31 is used as the default value.
rA and rC must not be equal, since such an instruction would not have the same result if re-executed. This error is not trapped, however the result is undefined.

Since instructions must be aligned on a word boundary, the two low-order bits of the value in target register rA must be 00.

Operation:

rC <-- PC + 8
PC <-- rA

Instruction Type:

R-Type

Instruction Fields:

rA = Index of register containing jump address

rC = Index of register containing return address

Encoding:

31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0
rA
0 0 0 0 0
rC
0 0 0 0 0 0 0 1 0 0 1

Latency: 1

You are reporting an issue with the following selected text and/or image within the active document: