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
(created page) |
(2 byte Instructions) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:40%" | |||
{| class="wikitable" style="float:right;clear:right;width: | |||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
|+ | |+ | ||
Line 9: | Line 7: | ||
|'''Speed''' | |'''Speed''' | ||
|+ | |+ | ||
| | |[[Uppermost Page Addressing | Uppermost Page]] | ||
|4F | |4F | ||
|2 byte | |2 byte | ||
Line 16: | Line 14: | ||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="8"|Flags | !colspan="8"|Flags Affected | ||
|+ | |+ | ||
|N | |[[Negative Flag|N]] | ||
|V | |[[Overflow Flag|V]] | ||
|P | |[[Direct Page Flag|P]] | ||
|B | |[[Break Flag|B]] | ||
|H | |[[Half-Carry Flag|H]] | ||
|I | |[[Interrupt Enable Flag|I]] | ||
|Z | |[[Zero Flag|Z]] | ||
|C | |[[Carry Flag|C]] | ||
|+ | |+ | ||
|. | |. | ||
Line 36: | Line 34: | ||
|. | |. | ||
|} | |} | ||
'''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. | |||
=== See Also === | === See Also === | ||
* [[CALL]] | * [[CALL]] | ||
* [[TCALL]] | * [[TCALL]] | ||
=== External Links === | |||
* Official Nintendo documentation on PCALL: Table C-16 [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I] | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:SPC700]] | [[Category:SPC700]] | ||
[[Category:Subroutine Call, Return Commands]] | |||
[[Category:Two-byte Instructions]] |
Revision as of 12:05, 28 November 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Uppermost Page | 4F | 2 byte | 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.
See Also
External Links
- Official Nintendo documentation on PCALL: Table C-16 Appendix C-9 of Book I