Jmp - Hitachi SH7750 Programming Manual

High-performance risc engine superh (sh) 32-bit risc mcu/mpu series
Hide thumbs Also See for SH7750:
Table of Contents

Advertisement

10.48

JMP

Unconditional Branch
Format
JMP @Rn
Description
Unconditionally makes a delayed branch to the address specified by Rn.
Notes
As this is a delayed branch instruction, the instruction following this instruction is executed before
the branch destination instruction.
Interrupts are not accepted between this instruction and the following instruction. If the following
instruction is a branch instruction, it is identified as a slot illegal instruction.
Operation
JMP(int n)/* JMP @Rn */
{
unsigned int temp;
temp=PC;
PC=R[n];
Delay_Slot(temp+2);
}
Example
MOV.L
JMP
MOV
.align
JMP_TABLE:
. data.l
...........
TRGET:
ADD
JuMP
Summary of Operation
Rn → PC
JMP_TABLE,R0
@R0
R0,R1
4
TRGET
#1,R1
Branch Instruction
Delayed Branch Instruction
Instruction Code
0100nnnn00101011 2
;R0 = TRGET address
;Branch to TRGET.
;MOV executed before branch.
;Jump table
;← Branch destination
Rev. 2.0, 03/99, page 295 of 396
Execution
States
T Bit

Advertisement

Table of Contents
loading

Table of Contents