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

ROMB (Super FX): Difference between revisions

From SnesLab
Jump to: navigation, search
(blurb about specifying sreg/dreg in advance)
Line 38: Line 38:


'''ROMB''' is a [[Super FX]] instruction that moves the low byte of the [[source register]] into [[ROMBR]].
'''ROMB''' is a [[Super FX]] instruction that moves the low byte of the [[source register]] into [[ROMBR]].
The source register should be specified in advance using [[WITH]] or [[FROM]].  Otherwise, R<sub>0</sub> serves as the default.


==== Syntax ====
==== Syntax ====

Revision as of 18:56, 9 July 2024

Basic Info
Addressing Mode Opcode Length ROM Speed RAM Speed Cache Speed
Implied (type 1) 3FDF 2 bytes 6 cycles 6 cycles 2 cycles
Flags Affected
B ALT1 ALT2 O/V S CY Z
0 0 0 . . . .

ROMB is a Super FX instruction that moves the low byte of the source register into ROMBR.

The source register should be specified in advance using WITH or FROM. Otherwise, R0 serves as the default.

Syntax

ROMB

Example

Let:

Sreg : R5
R5 = 0046h

After executing ROMB, the ROMBR becomes 46h.

See Also

External Links