BSR (Branch to SubRoutine)
BSR
<Description>
This instruction pushes the program counter (PC) value onto the stack, then adds a specified
displacement to the program counter value and branches to the resulting address. The program
counter value used is the address of the instruction following the BSR instruction.
The displacement is a signed 8-bit value which must be even. The possible branching range is
–126 to +128 bytes from the address of the BSR instruction.
<Instruction Formats>
<Operation>
PC
→
@–SP
PC + d:8
→
PC
<Assembly-Language Format>
BSR
d:8
<Examples>
BSR H'76
<Operand Size>
—
<Condition Code>
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Previous value remains unchanged.
Z: Previous value remains unchanged.
V: Previous value remains unchanged.
C: Previous value remains unchanged.
I
H
N
Z
V
C
—
—
—
— —
— —
—
PC-relative
BSR
d:8
5
5
disp
6
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
61
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...