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
(linkify flags)
(→‎See Also: SMS, SM)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable" style="float:right;clear:right;width:40%"
{| class="wikitable" style="float:right;clear:right;width:50%"
!colspan="8"|Basic Info
!colspan="8"|Basic Info
|+
|+
|'''Addressing Mode'''
|'''Opcode'''
|'''Opcode'''
|'''Length'''
|'''Length'''
Line 8: Line 9:
|'''Cache Speed'''
|'''Cache Speed'''
|+
|+
|
|3DAnkk
|3DAnkk
|3 bytes
|3 bytes
Line 16: Line 18:


{| class="wikitable" style="float:right;clear:right;width:30%"
{| class="wikitable" style="float:right;clear:right;width:30%"
!colspan="9"|Flags Clobbered
!colspan="9"|Flags Affected
|+
|+
|B
|[[B Flag|B]]
|[[ALT1]]
|[[ALT1]]
|[[ALT2]]
|[[ALT2]]
|[[O/V]]
|[[O/V]]
|S
|[[Sign Flag|S]]
|[[CY]]
|[[CY]]
|Z
|[[Zero Flag|Z]]
|+
|+
|0
|0
Line 35: 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 ===
* [[RAMB]]
* [[ALT1]]
* [[SMS]]
* [[SM]]


=== External Links ===
=== External Links ===
* Official Nintendo documentation on LMS: [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


[[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