Hardware manual

Microcomputer Technical Q&A
11
Q&A No.: QAH8S-010
Category: Instruction
Subject: Difference between BRA Instruction and JMP Instruction
Question
What is the difference between the BRA (BT) instruction and the JMP instruction?
Answer
With the BRA instruction, a branch is made on the basis of the address at which the BRA
instruction is located, whereas with the JMP instruction, the branch address is specified indirectly.
The differences between these two instructions are summarized below.
With the BRA instruction, the branching range is limited to +127 bytes to –128 bytes for d:8,
and +32767 bytes to –32768 bytes for d:16.
With the BRA instruction, program relocation is possible if the relative value with respect to
the branch destination is changed.
The instruction length and number of execution states are different. for these two instructions.
Applicable Products
Applicability Series Applicability Series Applicability Series
Yes Entire H8S Series H8S/2655 H8S/2350
H8S/2355 H8S/2357 H8S/2345
H8S/2245 H8S/2148 H8S/2144
H8S/2138 H8S/2134 H8S/2128
H8S/2124