Table 2.10 lists the SH7709S branch instructions.
Table 2.10 Branch Instructions
Privileged
Mode
Instruction
Operation
Code
Cycles T Bit
*
BF
label
If T = 0, disp × 2 + PC → PC;
if T = 1, nop
10001011dddddddd
—
3/1
—
*
BF/S label
Delayed branch, if T = 0,
disp × 2 + PC → PC;
if T = 1, nop
10001111dddddddd
10001001dddddddd
10001101dddddddd
—
2/1
—
*
*
BT
label
if T = 1,
disp × 2 + PC → PC;
if T = 0, nop
—
—
3/1
—
—
BT/S label
Delayed branch,
2/1
If T = 1, disp × 2 + PC → PC;
if T = 0, nop
BRA
label
Delayed branch,
disp × 2 + PC → PC
1010dddddddddddd
0000mmmm00100011
1011dddddddddddd
0000mmmm00000011
—
—
—
—
2
2
2
2
—
—
—
—
BRAF Rm
Delayed branch,
Rm + PC → PC
BSR
label
Delayed branch, PC → PR,
disp × 2 + PC → PC
BSRF Rm
Delayed branch, PC → PR,
Rm + PC → PC
JMP
JSR
@Rm
@Rm
Delayed branch, Rm → PC
0100mmmm00101011
0100mmmm00001011
—
—
2
2
—
—
Delayed branch, PC → PR,
Rm → PC
RTS
Delayed branch, PR → PC
0000000000001011
—
2
—
Note: * One state when there is no branch.
Rev. 5.00, 09/03, page 46 of 760