We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

JSR: Difference between revisions

From SnesLab
Jump to: navigation, search
(→‎External Links: Pickens ref)
Line 71: Line 71:
* [[Carr]] page 262 on JSR: https://archive.org/details/6502UsersManual/page/n275
* [[Carr]] page 262 on JSR: https://archive.org/details/6502UsersManual/page/n275
* [[Leventhal]] page 3-70 on JSR: https://archive.org/details/6502-assembly-language-programming/page/n119
* [[Leventhal]] page 3-70 on JSR: https://archive.org/details/6502-assembly-language-programming/page/n119
* http://www.6502.org/tutorials/6502opcodes.html#JSR


[[Category:ASM]]
[[Category:ASM]]
[[Category:Inherited from 6502]]
[[Category:Inherited from 6502]]
[[Category:Unconditional Branches]]
[[Category:Unconditional Branches]]

Revision as of 04:27, 21 July 2024

Basic Info
Addressing Mode Opcode Length Speed
Absolute 20 3 bytes 6 cycles
Absolute Indexed Indirect FC 3 bytes 8 cycles
Absolute Long 22 4 bytes 8 cycles
Flags Affected
N V M X D I Z C
. . . . . . . .

JSR (Jump to Subroutine) is a 65x instruction that transfers control to a subroutine.

No flags are affected.

Syntax

JSR addr
JSR (addr, X)
JSR long

Execution Sequence

  • The return address is pushed onto the stack
  • Control is transferred to the target location

See Also

External Links