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 admode column)
(→‎See Also: SMS, SM)
 
(6 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 ====
<pre>
LMS Rn, (yy)
</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 ===
* Official Nintendo documentation on LMS: 9.51 on [https://archive.org/details/SNESDevManual/book2/page/n227 page 2-9-71 of Book II]
* Official Nintendo documentation on LMS: 9.51 on [https://archive.org/details/SNESDevManual/book2/page/n227 page 2-9-71 of Book II]
* example: [https://archive.org/details/SNESDevManual/book2/page/n228 page 2-9-72 of Book II], lbid
* example: [https://archive.org/details/SNESDevManual/book2/page/n228 page 2-9-72 of Book II], lbid


[[Category:ASM]]
[[Category:ASM]]
[[Category:Super FX]]
[[Category:Super FX]]
[[Category:Data Transfer Instructions]]
[[Category:Data Transfer Instructions]]

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