Jsr (Jump To Subroutine) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

JSR (Jump to SubRoutine)

<Operation>
PC → @-SP
(EAd) → PC
<Assembly-Language Format>
JSR <EA>
<Examples>
JSR @R3
JSR @H'1D26
JSR @@H'F0
<Operand Size>
<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>
Addressing
mode
Register indirect
Absolute address JSR
Memory indirect
Mnem.
Operands
JSR
@Rn
@aa:16
JSR
@@aa:8
<Condition Code>
I
— — — — — — — —
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.
Instruction code
1st byte
2nd byte
5
D 0 rn
0
5
E
0
0
5
F
abs.
80
H
N
Z
3rd byte
4th byte
abs.
JSR
V
C
No. of
states
6
8
8

Advertisement

Table of Contents
loading

Table of Contents