We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
FROM (Super FX): Difference between revisions
From SnesLab
(→References: hid archive URL) |
(added admode column) |
||
(12 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:50%" | |||
{| class="wikitable" style="float:right;clear:right;width: | |||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
|+ | |+ | ||
|'''Addressing Mode''' | |||
|'''Opcode''' | |'''Opcode''' | ||
|'''Length''' | |'''Length''' | ||
Line 10: | Line 9: | ||
|'''Cache Speed''' | |'''Cache Speed''' | ||
|+ | |+ | ||
| | |||
|Bn | |Bn | ||
|1 byte | |1 byte | ||
Line 18: | Line 18: | ||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="9"|Flags | !colspan="9"|Flags Affected | ||
|+ | |+ | ||
|B | |[[B Flag|B]] | ||
|ALT1 | |[[ALT1]] | ||
|ALT2 | |[[ALT2]] | ||
|O/V | |[[O/V]] | ||
|S | |[[Sign Flag|S]] | ||
|CY | |[[CY]] | ||
|Z | |Z | ||
|+ | |+ | ||
Line 36: | Line 36: | ||
|. | |. | ||
|} | |} | ||
'''FROM''' is a [[Super FX]] register prefix instruction that specifies the [[source register]]. The exception is when the [[B Flag]] is set (i.e. a [[WITH]] instruction is executed immediately before) in which case a [[MOVES]] is executed instead with WITH acting as the source and FROM as the destination. | |||
No flags are affected. | |||
==== Syntax ==== | |||
<pre> | |||
FROM Rn | |||
</pre> | |||
=== See Also === | |||
* [[TO (Super FX)]] | |||
* [[WITH (Super FX)]] | |||
* [[MOVES (Super FX)]] | |||
=== External Links === | === External Links === | ||
* Official Nintendo documentation on FROM: [https://archive.org/details/SNESDevManual/book2/page/n204 | * Official Nintendo documentation on FROM: 9.34 on [https://archive.org/details/SNESDevManual/book2/page/n204 page 2-9-48 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]] | ||
[[Category:Super FX]] | [[Category:Super FX]] | ||
[[Category:Register Prefix Instructions]] | [[Category:Register Prefix Instructions]] | ||
[[Category:One-byte Instructions]] |
Latest revision as of 02:55, 4 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Bn | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
. | . | . | . | . | . | . |
FROM is a Super FX register prefix instruction that specifies the source register. The exception is when the B Flag is set (i.e. a WITH instruction is executed immediately before) in which case a MOVES is executed instead with WITH acting as the source and FROM as the destination.
No flags are affected.
Syntax
FROM Rn
See Also
External Links
- Official Nintendo documentation on FROM: 9.34 on page 2-9-48 of Book II
- Official Nintendo documentation on Register Prefixes: page 2-6-7 of Book II