We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
MOVES (Super FX): Difference between revisions
From SnesLab
(added example) |
m (→Example: period) |
||
Line 53: | Line 53: | ||
After executing MOVES R<sub>10</sub>, R<sub>7</sub>: | After executing MOVES R<sub>10</sub>, R<sub>7</sub>: | ||
R<sub>10</sub> = 4983h | R<sub>10</sub> = 4983h | ||
and the overflow flag is set | and the overflow flag is set. | ||
=== See Also === | === See Also === |
Revision as of 03:05, 9 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
2n'Bn | 2 bytes | 6 cycles | 6 cycles | 2 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . |
MOVES (Move Second?) is a Super FX instruction that moves the value of a register into another register.
According to fullsnes, the official documentation has the source and destination operands for MOVES mixed up. [2]
The flags are affected according to the datum moved. O/V will reflect bit 7, the sign flag will reflect bit 15, and the zero flag will be set iff the datum moved is zero.
Syntax
MOVES Rn, Rn'
Example
Let:
R7 = 4983h
After executing MOVES R10, R7:
R10 = 4983h
and the overflow flag is set.
See Also
External Links
- Official Super Nintendo development manual on MOVES: 9.63 on Page 2-9-89 of Book II
- https://problemkaputt.de/fullsnes.htm#snescartgsuncpumisc