We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
MERGE (Super FX): Difference between revisions
From SnesLab
(added syntax) |
(added example) |
||
Line 48: | Line 48: | ||
MERGE | MERGE | ||
</pre> | </pre> | ||
==== Example ==== | |||
Let: | |||
D<sub>reg</sub> : R<sub>9</sub> | |||
R<sub>7</sub> = 05aah | |||
R<sub>8</sub> = fc33h | |||
After executing MERGE: | |||
R<sub>9</sub> = 05fch | |||
and the sign, overflow, carry, and zero flags are set | |||
[[File:gsu_merge.png]] | [[File:gsu_merge.png]] |
Revision as of 19:39, 8 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 1) | 70 | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 |
MERGE is a Super FX instruction that merges the high byte of two registers into the destination register.
The high byte of Dreg comes from R7. The low byte of Dreg comes from R8.
The official documentation has several bits labeled "B" not 'D" below the "Flags affected" table.[1]
Syntax
MERGE
Example
Let:
Dreg : R9 R7 = 05aah R8 = fc33h
After executing MERGE:
R9 = 05fch
and the sign, overflow, carry, and zero flags are set
See Also
External Links
- Official Nintendo documentation on MERGE: paragraph 9.56 on page 2-9-79 of Book II
- example: page 2-9-80 of Book II, lbid.