We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
SMS (Super FX): Difference between revisions
From SnesLab
(number of cycles varies) |
(added example) |
||
Line 47: | Line 47: | ||
SMS (yy), Rn | SMS (yy), Rn | ||
</pre> | </pre> | ||
==== Example ==== | |||
Let: | |||
R<sub>11</sub> = abcdh | |||
RAMBR = 71h | |||
After executing this program: | |||
<pre> | |||
Syntax Opcode | |||
SMS (194h), R11 3e ab ca | |||
</pre> | |||
We have: | |||
(71:0194h) = cdh | |||
(71:0195h) = abh | |||
=== See Also === | === See Also === |
Revision as of 00:13, 10 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
3EAnkk | 3 bytes | 9 to 14 cycles | 13 to 17 cycles | 3 to 8 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . | . | . | . |
SMS is a Super FX instruction that stores a value to the Game Pak.
The selectable RAM address must be an even number between 0 and 510.
The number of cycles varies because of the RAM buffer.
Syntax
SMS (yy), Rn
Example
Let:
R11 = abcdh RAMBR = 71h
After executing this program:
Syntax Opcode SMS (194h), R11 3e ab ca
We have:
(71:0194h) = cdh (71:0195h) = abh
See Also
External Links
- Official Nintendo documentation on SMS: 9.82 on page 2-9-113 of Book II
- example: Page 2-9-114, lbid.