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

CALL (SPC700): Difference between revisions

From SnesLab
Jump to: navigation, search
(improve description)
(more detail)
Line 35: Line 35:
|}
|}


'''CALL''' is an [[SPC700]] instruction that calls a subroutine.
'''CALL''' is an [[SPC700]] instruction that calls a subroutine. The current [[program counter]] is pushed to the stack (high byte first, then low byte).  Then the address following the opcode becomes the new value of the program counter.<sup>[2]</sup>


=== See Also ===
=== See Also ===
Line 42: Line 42:


=== External Links ===
=== External Links ===
* Official Nintendo documentation on CALL: [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I]
# Official Nintendo documentation on CALL: [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I]
# anomie's spc700 doc


[[Category:ASM]]
[[Category:ASM]]
[[Category:SPC700]]
[[Category:SPC700]]
[[Category:Subroutine Call Return Commands]]
[[Category:Subroutine Call Return Commands]]

Revision as of 17:26, 23 July 2023

Basic Info
Addressing Mode Opcode Length Speed
implied 3F 3 bytes 8 cycles
Flags Affected
N V P B H I Z C
. . . . . . . .

CALL is an SPC700 instruction that calls a subroutine. The current program counter is pushed to the stack (high byte first, then low byte). Then the address following the opcode becomes the new value of the program counter.[2]

See Also

External Links

  1. Official Nintendo documentation on CALL: Appendix C-9 of Book I
  2. anomie's spc700 doc