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

PLOT (Super FX): Difference between revisions

From SnesLab
Jump to: navigation, search
(moved tables up)
(The ALT0 state is restored.)
 
(15 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:50%"
!colspan="8"|Basic Info
!colspan="8"|Basic Info
|+
|+
|'''Addressing Mode'''
|'''Opcode'''
|'''Opcode'''
|'''Length'''
|'''Length'''
Line 8: Line 9:
|'''Cache Speed'''
|'''Cache Speed'''
|+
|+
|[[Implied]] (type 1)
|4C
|4C
|1 byte
|1 byte
Line 16: Line 18:


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="9"|Flags Clobbered
!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 35: Line 37:
|}
|}


'''PLOT''' is a [[Super FX]] instruction that plots a single pixel.  The X coordinate is specified by R1.  The Y coordinate is specified by R2.  The color is specified by [[COLOR]] or [[GETC]].
'''PLOT''' is a [[Super FX]] instruction that plots a single pixel.  The X coordinate is specified by R<sub>1</sub>.  The Y coordinate is specified by R<sub>2</sub>.  The color is specified by [[COLOR]] or [[GETC]].


The PLOT circuitry exists inside the [[Game Pak RAM Controller]].
The PLOT circuitry exists inside the [[Game Pak RAM Controller]].


R1 is automatically incremented after the pixel is plotted.
R<sub>1</sub> is automatically incremented after the pixel is plotted.
 
The [[ALT0]] state is restored.
 
==== Syntax ====
<pre>
PLOT
</pre>
 
=== See Also ===
* [[RPIX]]


=== External Links ===
=== External Links ===
* Official Nintendo documentation on PLOT: [https://archive.org/details/SNESDevManual/book2/page/n256 Page 2-9-100 of Book II]
* Official Nintendo documentation on PLOT: 9.72 on [https://archive.org/details/SNESDevManual/book2/page/n256 Page 2-9-100 of Book II]
* 8.1.3 "Plot Processing (Plot)" on [https://archive.org/details/SNESDevManual/book2/page/n143 page 2-8-4], lbid.


[[Category:ASM]]
[[Category:ASM]]
[[Category:Super FX]]
[[Category:Super FX]]
[[Category:Plot-related Instructions]]
[[Category:Plot-related Instructions]]
[[Category:One-byte Instructions]]
[[Category:Video]]

Latest revision as of 00:19, 13 July 2024

Basic Info
Addressing Mode Opcode Length ROM Speed RAM Speed Cache Speed
Implied (type 1) 4C 1 byte 3 to 48 cycles 3 to 51 cycles 1 to 48 cycles
Flags Affected
B ALT1 ALT2 O/V S CY Z
0 0 0 . . . .

PLOT is a Super FX instruction that plots a single pixel. The X coordinate is specified by R1. The Y coordinate is specified by R2. The color is specified by COLOR or GETC.

The PLOT circuitry exists inside the Game Pak RAM Controller.

R1 is automatically incremented after the pixel is plotted.

The ALT0 state is restored.

Syntax

PLOT

See Also

External Links