We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

MOVE (Super FX)

From SnesLab
Revision as of 12:39, 15 July 2024 by MarioFanGamer (talk | contribs) (Added technical details and components of MOVE Rn, Rn'.)
Jump to: navigation, search
Basic Info
Addressing Mode Opcode Length ROM Speed RAM Speed Cache Speed
2n'1n 2 bytes 6 cycles 6 cycles 2 cycles
Flags Affected
B ALT1 ALT2 O/V S CY Z
0 0 0 . . . .

MOVE is the name of a Super FX instruction and macro instructions that moves the value of a register or immediate value into another register or RAM.

The ALT0 state is restored.

Syntax

MOVE Rn, Rn'
MOVE Rn, #xx
MOVE Rn, (xx)
MOVE (xx), Rn

MOVE Rn, Rn'

MOVE Rn, Rn' as a GSU instruction transfers the value from Rn' to Rn. The opcode is strictly speaking an alterantive execution of TO, namely when the B flag is set i.e. a TO is executed immediately after a WITH. The register of WITH Rn' is the source and the register of TO Rn is the destination (for this reason, it is safe to assume that the transfer happens from Sreg to Dreg).

As such, the execution of both codes are identical:

; R0 = 52BAh
WITH R0
TO R13
; R13 also is now 52BAh

; R0 = 52BAh
WITH R13,R0
; R13 also is now 52BAh

Example

Let:

R14 = 4983h
R8 = 9264h

when MOVE R8, R14 is executed:

R8 = 4983h

See Also

External Links