JSR (Jump to SubRoutine)
JSR
<Description>
This instruction pushes the program counter onto the stack, then branches to a specified
destination address. The program counter value pushed on the stack is the address of the
instruction following the JSR instruction. The destination address must be even.
<Instruction Formats>
<Operation>
PC
→
@-SP
(EAd)
→
PC
<Assembly-Language Format>
JSR
<EA>
<Examples>
JSR @R3
JSR @H'1D26
JSR @@H'F0
<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
—
—
—
— —
— —
—
Register indirect
JSR
@Rn
5
D 0 rn
0
6
Absolute address
JSR
@aa:16
5
E
0
0
abs.
8
Memory indirect
JSR
@@aa:8
5
F
abs.
8
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
80
Summary of Contents for H8/300 Series
Page 2: ...H8 300 Programming Manual...