We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
TO (Super FX): Difference between revisions
From SnesLab
(no flags affected) |
(Added connection to the B Flag and MOVE.) |
||
Line 35: | Line 35: | ||
|} | |} | ||
'''TO''' is a [[Super FX]] register prefix instruction that specifies the [[destination register]]. | '''TO''' is a [[Super FX]] register prefix instruction that specifies the [[destination register]]. The exception is when the [[B Flag]] is set (i.e. a [[WITH]] instruction is executed immediately before) in which case a [[MOVE]] is executed instead with <code>WITH</code> acting as the source and <code>TO</code> as the destination. | ||
No flags are affected. | No flags are affected. | ||
=== See Also === | === See Also === | ||
* [[FROM]] | * [[FROM (Super FX)]] | ||
* [[WITH]] | * [[WITH (Super FX)]] | ||
* [[MOVE (Super FX)]] | |||
=== External Links === | === External Links === | ||
* Official Nintendo documentation on TO: [https://archive.org/details/SNESDevManual/book2/page/n277 page 2-9-121 of Book II] | * Official Nintendo documentation on TO: [https://archive.org/details/SNESDevManual/book2/page/n277 page 2-9-121 of Book II] | ||
* 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]] |
Revision as of 19:06, 30 June 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Opcode | Length | ROM Speed | RAM Speed | Cache Speed | |||
1n | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
. | . | . | . | . | . | . |
TO is a Super FX register prefix instruction that specifies the destination register. The exception is when the B Flag is set (i.e. a WITH instruction is executed immediately before) in which case a MOVE is executed instead with WITH
acting as the source and TO
as the destination.
No flags are affected.
See Also
External Links
- Official Nintendo documentation on TO: page 2-9-121 of Book II
- Official Nintendo documentation on Register Prefixes: page 2-6-7 of Book II