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
(added admode column) |
(linkify Z) |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width: | {| class="wikitable" style="float:right;clear:right;width:50%" | ||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
|+ | |+ | ||
Line 9: | Line 9: | ||
|'''Cache Speed''' | |'''Cache Speed''' | ||
|+ | |+ | ||
| | |[[Implied]] (type 1) | ||
|3FDF | |3FDF | ||
|2 bytes | |2 bytes | ||
Line 26: | Line 26: | ||
|[[Sign Flag|S]] | |[[Sign Flag|S]] | ||
|[[CY]] | |[[CY]] | ||
|Z | |[[Zero Flag|Z]] | ||
|+ | |+ | ||
|0 | |0 | ||
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. | |||
The [[ALT0]] state is restored. | |||
==== Syntax ==== | |||
<pre> | |||
ROMB | |||
</pre> | |||
==== Example ==== | |||
Let: | |||
S<sub>reg</sub> : R<sub>5</sub> | |||
R<sub>5</sub> = 0046h | |||
After executing ROMB, the ROMBR becomes 46h. | |||
=== See Also === | === See Also === | ||
* [[RAMB]] | * [[RAMB]] | ||
* [[ALT3]] | |||
=== External Links === | === External Links === | ||
Line 49: | Line 65: | ||
[[Category:Bank Set-up Instructions]] | [[Category:Bank Set-up Instructions]] | ||
[[Category:Two-byte Instructions]] | [[Category:Two-byte Instructions]] | ||
[[Category:Expects Sreg/Dreg Prearranged]] |
Latest revision as of 00:21, 13 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.
The ALT0 state is restored.
Syntax
ROMB
Example
Let:
Sreg : R5 R5 = 0046h
After executing ROMB, the ROMBR becomes 46h.
See Also
External Links
- Official Nintendo documentation on ROMB: 9.75 on Page 2-9-104 of Book II