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

ALT1: Difference between revisions

From SnesLab
Jump to: navigation, search
(moved syntax to top)
(→‎External Links: added XOR ref)
 
(One intermediate revision by the same user not shown)
Line 60: Line 60:
* [[STB]] (R<sub>m</sub>)
* [[STB]] (R<sub>m</sub>)
* [[UMULT]] R<sub>n</sub>
* [[UMULT]] R<sub>n</sub>
* [[XOR]] R<sub>n</sub>


Many instructions clear the ALT1 flag, including:
Many instructions clear the ALT1 flag, including:
Line 127: Line 128:
* [[SWAP]]
* [[SWAP]]
* [[UMULT]] R<sub>n</sub>
* [[UMULT]] R<sub>n</sub>
* and presumably UMULT #n too
* and presumably UMULT #n and XOR too


=== See Also ===
=== See Also ===
Line 138: Line 139:
* Official Nintendo documentation on ALT1: 9.8 on [https://archive.org/details/SNESDevManual/book2/page/n163 page 2-9-7 of Book II]
* Official Nintendo documentation on ALT1: 9.8 on [https://archive.org/details/SNESDevManual/book2/page/n163 page 2-9-7 of Book II]
* Table 2-4-2 on [https://archive.org/details/SNESDevManual/book2/page/n110 page 2-4-4], lbid.
* Table 2-4-2 on [https://archive.org/details/SNESDevManual/book2/page/n110 page 2-4-4], lbid.
* https://en.wikibooks.org/wiki/Super_NES_Programming/Super_FX_tutorial#Instruction_Set_Table


[[Category:ASM]]
[[Category:ASM]]

Latest revision as of 00:48, 22 July 2024

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

ALT1 is both the name of a Super FX flag and the flag prefix instruction that sets it. It is bit 8 of the status flag register.

Syntax

ALT1

The following instructions require ALT1:

Many instructions clear the ALT1 flag, including:

See Also

External Links