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

ALT0: Difference between revisions

From SnesLab
Jump to: navigation, search
(removed duplicate sentence)
(XOR)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''ALT0''' is scene slang for the [[Super FX]] state where both the [[ALT1]] and [[ALT2]] flags are clear.  Many instructions restore the ALT0 state, including:
'''ALT0''' is scene slang for the [[Super FX]] state where both the [[ALT1]] and [[ALT2]] flags are clear.  Many instructions restore the ALT0 state, including:


* ADC R<sub>n</sub>
* [[GSU/ADC|ADC]] R<sub>n</sub>
* ADC #n
* [[GSU/ADC|ADC]] #n
* [[ADD]] R<sub>n</sub>
* [[ADD]] R<sub>n</sub>
* [[ADD]] #n
* [[ADD]] #n
* AND R<sub>n</sub>
* [[GSU/AND|AND]] R<sub>n</sub>
* AND #n
* [[GSU/AND|AND]] #n
* [[ASR]]
* [[ASR]]
* [[BIC]] R<sub>n</sub>
* [[BIC]] R<sub>n</sub>
Line 12: Line 12:
* [[CACHE]]
* [[CACHE]]
* [[CMODE]]
* [[CMODE]]
* CMP R<sub>n</sub>
* [[GSU/CMP|CMP]] R<sub>n</sub>
* COLOR
* [[COLOR]]
* DEC R<sub>n</sub>
* [[GSU/DEC|DEC]] R<sub>n</sub>
* [[DIV2]]
* [[DIV2]]
* [[FMULT]]
* [[FMULT]]
Line 24: Line 24:
* [[HIB]]
* [[HIB]]
* [[IBT]] R<sub>n</sub>, #pp
* [[IBT]] R<sub>n</sub>, #pp
* INC R<sub>n</sub>
* [[GSU/INC|INC]] R<sub>n</sub>
* [[IWT]] R<sub>n</sub>, #xx
* [[IWT]] R<sub>n</sub>, #xx
* JMP R<sub>n</sub>
* [[GSU/JMP|JMP]] R<sub>n</sub>
* [[LDB]] (R<sub>m</sub>)
* [[LDB]] (R<sub>m</sub>)
* [[LDW]] (R<sub>m</sub>)
* [[LDW]] (R<sub>m</sub>)
* [[LEA]] Rn, xx
* [[LEA]] R<sub>n</sub>, xx
* [[LINK]] #n
* [[LINK]] #n
* [[LJMP]] R<sub>n</sub>
* [[LJMP]] R<sub>n</sub>
* LM R<sub>n</sub>, (xx)
* [[GSU/LM|LM]] R<sub>n</sub>, (xx)
* [[LMS]] R<sub>n</sub>, (yy)
* [[LMS]] R<sub>n</sub>, (yy)
* [[LMULT]]
* [[LMULT]]
* [[LOB]]
* [[LOB]]
* [[LOOP]]
* [[LOOP]]
* LSR
* [[GSU/LSR|LSR]]
* [[MERGE]]
* [[MERGE]]
* MOVE R<sub>n</sub>, R<sub>n</sub>'
* [[GSU/MOVE|MOVE]] R<sub>n</sub>, R<sub>n</sub>'
* [[MOVES]] R<sub>n</sub>, R<sub>n</sub>'
* [[MOVES]] R<sub>n</sub>, R<sub>n</sub>'
* [[MULT]] R<sub>n</sub>
* [[MULT]] R<sub>n</sub>
* [[MULT]] #n
* [[MULT]] #n
* NOP
* [[GSU/NOP|NOP]]
* [[NOT]]
* [[NOT]]
* [[OR]] R<sub>n</sub>
* [[OR]] R<sub>n</sub>
* OR #n
* [[OR]] #n
* [[PLOT]]
* [[PLOT]]
* [[RAMB]]
* [[RAMB]]
* ROL
* [[GSU/ROL|ROL]]
* [[ROMB]]
* [[ROMB]]
* ROR
* [[GSU/ROR|ROR]]
* [[RPIX]]
* [[RPIX]]
* SBC R<sub>n</sub>
* [[GSU/SBC|SBC]] R<sub>n</sub>
* [[SBK]]
* [[SBK]]
* [[SEX]]
* [[SEX]]
* SM (xx), R<sub>n</sub>
* [[SM]] (xx), R<sub>n</sub>
* [[SMS]] (yy), R<sub>n</sub>
* [[SMS]] (yy), R<sub>n</sub>
* [[STB]] (R<sub>m</sub>)
* [[STB]] (R<sub>m</sub>)
Line 65: Line 65:
* [[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 ===
* [[ALT3]]
* [[ALT3]]
=== See Also ===
* [[Super_FX_Opcode_Matrices#ALT1_=_0,_ALT2_=_0]]
* [[Super_FX_Opcode_Matrices#ALT1_=_0,_ALT2_=_0]]


=== References ===
=== References ===
* ares source: https://github.com/ares-emulator/ares/blob/master/ares/component/processor/gsu/disassembler.cpp#L37
* ares source: https://github.com/ares-emulator/ares/blob/master/ares/component/processor/gsu/disassembler.cpp#L37
* Table 2-4-2 on [https://archive.org/details/SNESDevManual/book2/page/n110 page 2-4-4 of Book II] of the official Super Nintendo development manual


[[Category:ASM]]
[[Category:ASM]]
[[Category:Super FX]]
[[Category:Super FX]]
[[Category:Scene Slang]]
[[Category:Scene Slang]]

Latest revision as of 00:49, 22 July 2024

ALT0 is scene slang for the Super FX state where both the ALT1 and ALT2 flags are clear. Many instructions restore the ALT0 state, including:

See Also

References