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
(added example) |
(Z) |
||
Line 26: | Line 26: | ||
|[[Sign Flag|S]] | |[[Sign Flag|S]] | ||
|[[CY]] | |[[CY]] | ||
|Z | |[[Zero Flag|Z]] | ||
|+ | |+ | ||
|. | |. |
Revision as of 21:09, 12 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 1) | 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
Example
To set R2 as the source register, run:
FROM R2
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