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

LMS (Super FX): Difference between revisions

From SnesLab
Jump to: navigation, search
(added syntax)
(→‎See Also: SMS, SM)
 
(5 intermediate revisions by the same user not shown)
Line 26: Line 26:
|[[Sign Flag|S]]
|[[Sign Flag|S]]
|[[CY]]
|[[CY]]
|Z
|[[Zero Flag|Z]]
|+
|+
|0
|0
Line 37: Line 37:
|}
|}


'''LMS''' is a [[Super FX]] instruction that is a short [[LM (Super FX)|LM]].
'''LMS''' (Load from raM, Short address) is a [[Super FX]] instruction that is a short [[LM (Super FX)|LM]].
 
The [[ALT0]] state is restored.


==== Syntax ====
==== Syntax ====
Line 43: Line 45:
LMS Rn, (yy)
LMS Rn, (yy)
</pre>
</pre>
==== Example ====
Let:
(70:1aah) = 32h
(70:1abh) = 92h
RAMBR = 70h
After executing this program:
Syntax            Opcode
LMS R<sub>3</sub>, (1aah)    3d a3 d5
We have:
R<sub>3</sub> = 9232h


=== See Also ===
=== See Also ===
* [[RAMB]]
* [[RAMB]]
* [[ALT1]]
* [[SMS]]
* [[SM]]


=== External Links ===
=== External Links ===

Latest revision as of 05:47, 16 July 2024

Basic Info
Addressing Mode Opcode Length ROM Speed RAM Speed Cache Speed
3DAnkk 3 bytes 17 cycles 17 cycles 10 cycle
Flags Affected
B ALT1 ALT2 O/V S CY Z
0 0 0 . . . .

LMS (Load from raM, Short address) is a Super FX instruction that is a short LM.

The ALT0 state is restored.

Syntax

LMS Rn, (yy)

Example

Let:

(70:1aah) = 32h
(70:1abh) = 92h
RAMBR = 70h

After executing this program:

Syntax            Opcode
LMS R3, (1aah)    3d a3 d5

We have:

R3 = 9232h

See Also

External Links