English
Language : 

SH-2A Datasheet, PDF (214/501 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH™ RISC engine Family
Section 6 Instruction Descriptions
Example:
JMP_TABLE:
TRGET:
MOV.L JMP_TABLE,R0
JMP
@R0
MOV
R0,R1
.align 4
.data.l TRGET
.................
ADD
#1,R1
; Address of R0 = TRGET
; Branches to TRGET
; Executes MOV before branching
; Jump table
; ← Branch destination
Note:
When a delayed branch instruction is used, the branching operation takes place after the
slot instruction is executed, but the execution of instructions (register update, etc.) takes
place in the sequence delayed branch instruction → delayed slot instruction. For example,
even if a delayed slot instruction is used to change the register where the branch
destination address is stored, the register content previous to the change will be used as the
branch destination address.
Rev. 3.00 Jul 08, 2005 page 200 of 484
REJ09B0051-0300