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: Carr page)
(execution sequence)
 
(One intermediate revision by the same user not shown)
Line 46: Line 46:


'''JSR''' (Jump to Subroutine) is a 65x instruction that transfers control to a subroutine.
'''JSR''' (Jump to Subroutine) is a 65x instruction that transfers control to a subroutine.
==== Execution Sequence ====
* The [[return address]] is pushed onto the stack
* Control is transferred to the target location


=== See Also ===
=== See Also ===
Line 54: Line 58:
* [[Eyes & Lichty]] page 461, on JSR: https://archive.org/details/0893037893ProgrammingThe65816/page/n487
* [[Eyes & Lichty]] page 461, on JSR: https://archive.org/details/0893037893ProgrammingThe65816/page/n487
* [[Labiak]] page 148 on JSR: https://archive.org/details/Programming_the_65816/page/n158
* [[Labiak]] page 148 on JSR: https://archive.org/details/Programming_the_65816/page/n158
* [[MCS6500 Manual]] page on JSR: https://archive.org/details/mos_microcomputers_programming_manual/page/n125
* [[MCS6500 Manual]] page 106 on JSR: https://archive.org/details/mos_microcomputers_programming_manual/page/n125
* [[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

Latest revision as of 10:04, 18 December 2023

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.

Execution Sequence

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

See Also

External Links