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
(3 byte Instructions) |
(No flags are affected.) |
||
Line 36: | Line 36: | ||
'''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> | '''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> | ||
No flags are affected. | |||
=== See Also === | === See Also === |
Revision as of 19:12, 6 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Absolute | 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]
No flags are affected.
See Also
External Links
- Official Nintendo documentation on CALL: Table C-16 in Appendix C-9 of Book I
- anomie's spc700 doc