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

PCALL (SPC700): Difference between revisions

From SnesLab
Jump to: navigation, search
(2 byte Instructions)
(removed comma in category)
 
(9 intermediate revisions by the same user not shown)
Line 9: Line 9:
|[[Uppermost Page Addressing | Uppermost Page]]
|[[Uppermost Page Addressing | Uppermost Page]]
|4F
|4F
|2 byte
|2 bytes
|6 cycles
|6 cycles
|}
|}
Line 35: Line 35:
|}
|}


'''PCALL''' (uPage CALl) is an [[SPC700]] instruction that runs a subroutine in the [[Uppermost Page]].  The operand specifies the low byte of the target address within the uppermost page.
'''PCALL''' (uPage CALl) is an [[SPC700]] instruction that runs a subroutine in the [[uppermost page]].  The operand specifies the low byte of the target address within the uppermost page.
 
No flags are affected.
 
==== Syntax ====
<pre>
PCALL upage
</pre>
 
PCALL $xx has the same effect as [[CALL]] $FFxx.<sup>[2]</sup>


=== See Also ===
=== See Also ===
* [[CALL]]
* [[TCALL]]
* [[TCALL]]
* [[RET]]
* [[JSR]]


=== External Links ===
=== External Links ===
* Official Nintendo documentation on PCALL: Table C-16 [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I]
# Official Nintendo documentation on PCALL: Table C-16 [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I]
# https://forums.nesdev.org/viewtopic.php?t=13313
# https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L534
 


[[Category:ASM]]
[[Category:ASM]]
[[Category:SPC700]]
[[Category:SPC700]]
[[Category:Subroutine Call, Return Commands]]
[[Category:Subroutine Call Return Commands]]
[[Category:Two-byte Instructions]]
[[Category:Two-byte Instructions]]

Latest revision as of 21:55, 10 August 2024

Basic Info
Addressing Mode Opcode Length Speed
Uppermost Page 4F 2 bytes 6 cycles
Flags Affected
N V P B H I Z C
. . . . . . . .

PCALL (uPage CALl) is an SPC700 instruction that runs a subroutine in the uppermost page. The operand specifies the low byte of the target address within the uppermost page.

No flags are affected.

Syntax

PCALL upage

PCALL $xx has the same effect as CALL $FFxx.[2]

See Also

External Links

  1. Official Nintendo documentation on PCALL: Table C-16 Appendix C-9 of Book I
  2. https://forums.nesdev.org/viewtopic.php?t=13313
  3. https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L534