We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
XOR (Super FX): Difference between revisions
From SnesLab
(made table order consistent with OR) |
(linkify) |
||
Line 38: | Line 38: | ||
|} | |} | ||
'''XOR''' is an undocumented<sup>[dubious]</sup> (XOR is mentioned on page 2-2-7 of the Nintendo documentation) [[Super FX]] instruction that performs an exculsive or. | '''XOR''' is an undocumented<sup>[dubious]</sup> (XOR is mentioned on [https://archive.org/details/SNESDevManual/book2/page/n101 page 2-2-7 of Book II] of the Nintendo documentation) [[Super FX]] instruction that performs an exculsive or. | ||
It probably restores the [[ALT0]] state like [[OR]]. | It probably restores the [[ALT0]] state like [[OR]]. |
Revision as of 01:12, 22 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Immediate | 3FC | 2 bytes | |||||
Implied (type 1) | 3DC | 2 bytes |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0? | 0? | 0? | .? | ? | .? | ? |
XOR is an undocumented[dubious] (XOR is mentioned on page 2-2-7 of Book II of the Nintendo documentation) Super FX instruction that performs an exculsive or.
It probably restores the ALT0 state like OR.
The source and destination registers should be specified in advance using WITH, FROM, or TO. Otherwise, R0 serves as the default.
Syntax
XOR Rn XOR #n
See Also
References
- https://en.wikibooks.org/wiki/Super_NES_Programming/Super_FX_tutorial#Instruction_Set_Table
- Example 3 on page 2-8-10 of Book II of the official Super Nintendo development manual