35.3.7.4. UNCONDITIONAL JUMPS AND CALLS ON MIPS


	
+-------------------------------+
|	Len	Value		|
|	6	Opcode		|
|	26	idx		|
+-------------------------------+


Command			Opcode		Description
J	target		0000 10		Jump

	PC <- {PC{GPRLEN..28},idx,00b}

JAL	target		0000 11		Jump and Link

	GPR[31] <- PC + 8
	PC <- {PC{GPRLEN..28},idx,00b}

					
+-------------------------------+
|	Len	Value		|	
|	6	0 = SPECIAL	|
|	5	rs		|
|	5	0		|
|	5	rd		|
|	5	0		|
|	5	xx		|
+-------------------------------+



Command			xx	Description
JARL 	rd,rs 		001001	Jump and Link Register
JARL	rs		------	(rd = 31 implied)

	temp    <- GPR[rs]
	GPR[rd] <- PC + 8
	PC      <- temp


+-------------------------------+
|	Len	Value		|	
|	6	0 = SPECIAL	|
|	5	rs		|
|	15	0		|
|	5	xx		|
+-------------------------------+



Command			xx	Description
JR	rs		001000	Jump Register

	PC	<- GPR[rs]








// ----------------------------------------------------------------------


Index Prev Next