We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
DIV2 (Super FX): Difference between revisions
From SnesLab
(→See Also: ALT1) |
(added syntax) |
||
Line 38: | Line 38: | ||
'''DIV2''' (DIVide by 2) is a [[Super FX]] instruction that shifts the value of the [[source register]]'s bits one place to the right while also leaving the most significant bit unchanged, storing the quotient in the [[destination register]]. The source register itself is left unchanged. Unlike [[ASR]], the output becomes zero if the input is 0xFFFF. | '''DIV2''' (DIVide by 2) is a [[Super FX]] instruction that shifts the value of the [[source register]]'s bits one place to the right while also leaving the most significant bit unchanged, storing the quotient in the [[destination register]]. The source register itself is left unchanged. Unlike [[ASR]], the output becomes zero if the input is 0xFFFF. | ||
==== Syntax ==== | |||
<pre> | |||
DIV2 | |||
</pre> | |||
=== See Also === | === See Also === |
Revision as of 02:24, 6 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 1) | 3D96 | 2 bytes | 6 cycles | 6 cycles | 2 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . |
DIV2 (DIVide by 2) is a Super FX instruction that shifts the value of the source register's bits one place to the right while also leaving the most significant bit unchanged, storing the quotient in the destination register. The source register itself is left unchanged. Unlike ASR, the output becomes zero if the input is 0xFFFF.
Syntax
DIV2
See Also
External Links
- Official Nintendo documentation on DIV2: 9.32 on page 2-9-44 of Book II
- example: page 2-9-45, lbid.