The wiki has been upgraded to MediaWiki 1.43. The wiki's theme is still being adapted to work with the new version, and may appear broken for the time being. --RanAS
SM (Super FX)
From SnesLab
(Redirected from SM)
| Basic Info | |||||||
|---|---|---|---|---|---|---|---|
| Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
| Implied Indirect | 3EFnxxxx | 4 bytes | 12 to 17 cycles | 16 to 20 cycles | 4 to 9 cycles | ||
| Flags Affected | ||||||||
|---|---|---|---|---|---|---|---|---|
| B | ALT1 | ALT2 | O/V | S | CY | Z | ||
| 0 | 0 | 0 | . | . | . | . | ||
SM (Store to raM) is a Super FX instruction that stores a value to the Game Pak. The bank must be specified with RAMB.
The number of cycles varies because of the RAM buffer.
The ALT0 state is restored.
Syntax
SM (xx), Rn
Example
Let:
R4 = 438ch RAMBR = 70h
After executing SM (0b492h), R4:
(70:b492h) = 8ch (70:b493h) = 43h
See Also
External Links
- Official Nintendo documentation on SM: 9.81 on page 2-9-112 of Book II