We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
WITH (Super FX): Difference between revisions
From SnesLab
(which book) |
(Added purpose as a register prefix.) |
||
Line 19: | Line 19: | ||
|} | |} | ||
'''WITH''' is an undocumented{{dubious}} (WITH is mentioned on | '''WITH''' is an undocumented{{dubious}} (WITH is mentioned on pages 2-2-8 and 2-6-7 of Book II the Nintendo documentation) [[Super FX]] instruction that sets the register specified by the operand as both the [[source register]] and [[destination register]]. It also sets the B flag which makes it a prefix instruction, more specifically for [[TO]] and [[FROM]] which act like [[MOVE]] and [[MOVES]], respectively, with WITH carrying the source and the modified opcode the destination. | ||
=== See Also === | === See Also === | ||
* [[TO]] | * [[TO (Super FX)]] | ||
* [[FROM]] | * [[FROM (Super FX)]] | ||
* [[B Flag]] | * [[B Flag (Super FX)]] | ||
* [[MOVE (Super FX)]] | |||
* [[MOVES (Super FX)]] | |||
=== References === | === References === | ||
* ''Comprehensive Super FX ASM Guide'', part C (Basic operations): https://www.smwcentral.net/?p=viewthread&t=81548 | * ''Comprehensive Super FX ASM Guide'', part C (Basic operations): https://www.smwcentral.net/?p=viewthread&t=81548 | ||
* Official Nintendo documentation on Register Prefixes: [https://archive.org/details/SNESDevManual/book2/page/n129 page 2-6-7 of Book II] | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:Super FX]] | [[Category:Super FX]] | ||
[[Category:Register Prefix Instructions]] | [[Category:Register Prefix Instructions]] |
Revision as of 19:05, 30 June 2024
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
1 |
WITH is an undocumentedTemplate:dubious (WITH is mentioned on pages 2-2-8 and 2-6-7 of Book II the Nintendo documentation) Super FX instruction that sets the register specified by the operand as both the source register and destination register. It also sets the B flag which makes it a prefix instruction, more specifically for TO and FROM which act like MOVE and MOVES, respectively, with WITH carrying the source and the modified opcode the destination.
See Also
References
- Comprehensive Super FX ASM Guide, part C (Basic operations): https://www.smwcentral.net/?p=viewthread&t=81548
- Official Nintendo documentation on Register Prefixes: page 2-6-7 of Book II