2.2.33 JSR
JSR (Jump to SubRoutine)
Jump to Subroutine
Operation
PC
→
@–SP
Effective address
→
PC
Assembly-Language Format
JSR
<EA>
Operand Size
—
Condition Code
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
UI
H
U
N
Z
V
C
—
—
—
—
—
—
—
—
Description
This instruction pushes the program counter on the stack as a return address, then branches to a
specified effective address. The program counter value pushed on the stack is the address of the
instruction following the JSR instruction.
Available Registers
ERn: ER0 to ER7
Operand Format and Number of States Required for Execution
Instruction Format
No. of State
1st byte
2nd byte
3rd byte
4th byte
Normal
Advanced
Register indirect
JSR
@ERn
5
D
0 ern
0
6
8
Absolute JSR
@aa:24
5
E
abs
8
10
address
Memory indirect
JSR
@@aa:8
5
F
abs
8
12
Mnemonic
Operands
Addressing
Mode
106