We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
RPIX (Super FX): Difference between revisions
From SnesLab
(added basic info) |
(made flags affected more prominent) |
||
(30 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:50%" | |||
{| class="wikitable" style="float:right;clear:right;width: | |||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
|+ | |+ | ||
|'''Addressing Mode''' | |||
|'''Opcode''' | |'''Opcode''' | ||
|'''Length''' | |'''Length''' | ||
Line 11: | Line 9: | ||
|'''Cache Speed''' | |'''Cache Speed''' | ||
|+ | |+ | ||
|[[Implied]] (type 1) | |||
|3D4C | |3D4C | ||
|2 byte | |2 byte | ||
Line 19: | Line 18: | ||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="9"|Flags | !colspan="9"|Flags Affected | ||
|+ | |+ | ||
|B | |[[B Flag|B]] | ||
|ALT1 | |[[ALT1]] | ||
|ALT2 | |[[ALT2]] | ||
|O/V | |[[O/V]] | ||
|S | |[[Sign Flag|S]] | ||
|CY | |[[CY]] | ||
|Z | |[[Zero Flag|Z]] | ||
|+ | |+ | ||
|0 | |0 | ||
Line 33: | Line 32: | ||
|0 | |0 | ||
|. | |. | ||
| | |S | ||
|. | |. | ||
| | |Z | ||
|} | |} | ||
'''RPIX''' (Read PIXel) is a [[Super FX]] instruction that loads a color from the [[Game Pak]] RAM and stores it in the [[destination register]]. It does this by first loading the color into the [[color matrix]] and converting it from [[PPU]] format. | |||
The X coordinate is specified by R<sub>1</sub> and the Y coordinate is specified by R<sub>2</sub>. | |||
The [[ALT0]] state is restored. | |||
==== Syntax ==== | |||
<pre> | |||
RPIX | |||
</pre> | |||
=== See Also === | |||
* [[PLOT]] | |||
* [[COLOR]] | |||
* [[GETC]] | |||
* [[Pixel Cache]] | |||
* [[ALT1]] | |||
=== External Links === | |||
* Official Nintendo documentation on RPIX: 9.77 on [https://archive.org/details/SNESDevManual/book2/page/n263 Page 2-9-107 of Book II] | |||
* 8.1.3.3 RPIX INSTRUCTION on [https://archive.org/details/SNESDevManual/book2/page/n148 page 2-8-9 of Book II], lbid. | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:Super FX]] | [[Category:Super FX]] | ||
[[Category:Plot-related Instructions]] | |||
[[Category:Two-byte Instructions]] |
Latest revision as of 19:17, 30 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 1) | 3D4C | 2 byte | 24 to 80 cycles | 24 to 78 cycles | 20 to 74 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . | S | . | Z |
RPIX (Read PIXel) is a Super FX instruction that loads a color from the Game Pak RAM and stores it in the destination register. It does this by first loading the color into the color matrix and converting it from PPU format.
The X coordinate is specified by R1 and the Y coordinate is specified by R2.
The ALT0 state is restored.
Syntax
RPIX
See Also
External Links
- Official Nintendo documentation on RPIX: 9.77 on Page 2-9-107 of Book II
- 8.1.3.3 RPIX INSTRUCTION on page 2-8-9 of Book II, lbid.