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
Jump to: navigation, search
(added examples)
(added example 1)
Line 8: Line 8:


==== Example 1 ====
==== Example 1 ====
Let:
R<sub>3</sub> = 6480h
(71:6480h) = 2eh
(71:6481h) = c0h
RAMBR = 71h
After executing this program:
MOVEW R<sub>5</sub>, (R<sub>3</sub>)
; (R<sub>3</sub>) -> R<sub>5</sub> (low byte)
; (R<sub>3</sub>+1) -> R<sub>5</sub> (high byte)
We have:
R<sub>5</sub> = c02eh
==== Example 2 ====
==== Example 2 ====
==== Example 3 ====
==== Example 3 ====

Revision as of 03:00, 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

See Also

External Links