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

CMODE (Super FX): Difference between revisions

From SnesLab
Jump to: navigation, search
(added example)
Line 59: Line 59:
CMODE
CMODE
</pre>
</pre>
==== Example ====
Let:
S<sub>reg</sub> : R<sub>0</sub>
R<sub>0</sub> = 0002h
After CMODE runs, the transparency and dither modes are set.


=== See Also ===
=== See Also ===

Revision as of 19:17, 8 July 2024

Basic Info
Addressing Mode Opcode Length ROM Speed RAM Speed Cache Speed
Implied (type 1) 3D4E 2 bytes 6 cycles 6 cycles 2 cycle
Flags Affected
B ALT1 ALT2 O/V S CY Z
0 0 0 . . . .
Color/Plot flags
Plot Transparent Plot Dither Color Src High Color Frz High Object Mode
Bit 0 of src Bit 1 of src Bit 2 of src Bit 3 of src Bit 4 of src

CMODE is a Super FX instruction that specifies execution modes. It sets plot and color related flags based on the low 5 bits of the source register.

Syntax

CMODE

Example

Let:

Sreg : R0
R0 = 0002h

After CMODE runs, the transparency and dither modes are set.

See Also

External Links