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

JSL: Difference between revisions

From SnesLab
Jump to: navigation, search
(added Labiak page)
(→‎Execution Sequence: return address)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''JSL''' (Jump to Subroutine Long) is a [[65c816]] instruction that transfers control to a subroutine, possibly one in a different bank.
{| class="wikitable" style="float:right;clear:right;width:40%"
 
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="8"|Basic Info
!colspan="8"|Basic Info
|+
|+
Line 9: Line 7:
|'''Speed'''
|'''Speed'''
|+
|+
|absolute long
|[[Absolute Long Addressing|Absolute Long]]
|22
|22
|4 byte
|4 byte
Line 16: Line 14:


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="9"|Flags Clobbered
!colspan="9"|Flags Affected
|+
|+
|N
|[[Negative Flag|N]]
|V
|[[Overflow Flag|V]]
|M
|[[M Flag|M]]
|X
|[[X Flag|X]]
|D
|[[Decimal Flag|D]]
|I
|[[I Flag|I]]
|Z
|[[Zero Flag|Z]]
|C
|[[Carry Flag|C]]
|+
|+
|.
|.
Line 36: Line 34:
|.
|.
|}
|}
'''JSL''' (Jump to Subroutine Long) is a [[65c816]] instruction that transfers control to a subroutine, possibly one in a different [[bank]].
==== Execution Sequence ====
* the current program counter bank is pushed onto the [[stack]]
* the [[return address]] is pushed onto the stack
* control is transferred to the target location


=== See Also ===
=== See Also ===
* [[JSR]]
* [[JSR]]
* [[RTS]]


=== External Links ===
=== External Links ===
* [[Eyes & Lichty]] page on JSL: https://archive.org/details/0893037893ProgrammingThe65816/page/n486\
* [[Eyes & Lichty]] page 460 on JSL: https://archive.org/details/0893037893ProgrammingThe65816/page/n486
* [[Labiak]] page on JSL: https://archive.org/details/Programming_the_65816/page/n157
* [[Labiak]] page 147 on JSL: https://archive.org/details/Programming_the_65816/page/n157


[[Category:ASM]]
[[Category:ASM]]
[[Category:65c816 additions]]
[[Category:65c816 additions]]
[[Category:Unconditional Branches]]
[[Category:Four-byte Instructions]]

Latest revision as of 09:58, 18 December 2023

Basic Info
Addressing Mode Opcode Length Speed
Absolute Long 22 4 byte 8 cycles
Flags Affected
N V M X D I Z C
. . . . . . . .

JSL (Jump to Subroutine Long) is a 65c816 instruction that transfers control to a subroutine, possibly one in a different bank.

Execution Sequence

  • the current program counter bank is pushed onto the stack
  • the return address is pushed onto the stack
  • control is transferred to the target location

See Also

External Links