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