[SP] ← [SP] - 4; [M([SP])] ← [PC]
[PC] ← destination
JSR <ea>
Unsized
JSR
pushes the longword address of the instruction immediately following the JSR
onto the system stack. Program execution then continues at the address specified in the instruction.
JSR (Ai)
calls the procedure pointed at by address register Ai. The instruction JSR (Ai,Dj)
calls the procedure at the location [Ai] + [Dj] which permits dynamically computed addresses.
X | N | Z | V | C |
---|---|---|---|---|
- | - | - | - | - |
Dn | An | (An) | (An)+ | ‑(An) | (d,An) | (d,An,Xi) | ABS.W | ABS.L | (d,PC) | (d,PC,Xn) | imm |
---|---|---|---|---|---|---|---|---|---|---|---|
✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
From MOTOROLA M68000 FAMILY Programmer's reference manual. Copyright 1992 by Motorola Inc./NXP. Adapted with permission.