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
Jump to: navigation, search
m (pluralize cycles)
(added official doc link)
Line 41: Line 41:
* [[ASR]]
* [[ASR]]
* [[LSR]]
* [[LSR]]
=== External Links ===
* Official Nintendo documentation on DIV2: https://archive.org/details/SNESDevManual/book2/page/n200


[[Category:ASM]]
[[Category:ASM]]
[[Category:Super FX]]
[[Category:Super FX]]
[[Category:Arithmetic Operation Instructions]]
[[Category:Arithmetic Operation Instructions]]

Revision as of 06:52, 16 May 2023

DIV2 (DIVide by 2) is a Super FX instruction that shifts a register's bits one place to the right while also leaving the most significant bit unchanged. Unlike ASR, the output becomes zero if the input is 0xFFFF.

Basic Info
Opcode Length ROM Speed RAM Speed Cache Speed
3D96 2 bytes 6 cycles 6 cycles 2 cycles
Flags Clobbered
B ALT1 ALT2 O/V S CY Z
0 0 0 .

See Also

External Links