We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
MOVEW (Super FX): Difference between revisions
From SnesLab
(four examples) |
(→Example 4: added example) |
||
Line 23: | Line 23: | ||
==== Example 3 ==== | ==== Example 3 ==== | ||
==== Example 4 ==== | ==== Example 4 ==== | ||
Let: | |||
R<sub>0</sub> = 3151h | |||
R<sub>6</sub> = 92a0h | |||
RAMBR = 71h | |||
After executing this program: | |||
MOVEW (R<sub>6</sub>), R<sub>0</sub> | |||
We have: | |||
(71:92a0h) = 51h | |||
(71:92a1h) = 31h | |||
=== See Also === | === See Also === |
Revision as of 03:32, 16 July 2024
MOVEW (Move Word) is a Super FX macro instruction that loads data from the Game Pak.
Syntax
MOVEW Rn, (Rn') MOVEW (Rn'), Rn
Example 1
Let:
R3 = 6480h (71:6480h) = 2eh (71:6481h) = c0h RAMBR = 71h
After executing this program:
MOVEW R5, (R3) ; (R3) -> R5 (low byte) ; (R3+1) -> R5 (high byte)
We have:
R5 = c02eh
Example 2
Example 3
Example 4
Let:
R0 = 3151h R6 = 92a0h RAMBR = 71h
After executing this program:
MOVEW (R6), R0
We have:
(71:92a0h) = 51h (71:92a1h) = 31h
See Also
External Links
- Official Super Nintendo development manual on MOVEW: 9.64 on Page 2-9-90 of Book II