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
(added list of instructions that restore ALT0 state)
(XOR)
 
(18 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:


Many instructions restore the ALT0 state, including:
* [[GSU/ADC|ADC]] R<sub>n</sub>
 
* [[GSU/ADC|ADC]] #n
* ADC Rn
* [[ADD]] R<sub>n</sub>
* ADC #n
* [[ADD]] #n
* ADD Rn
* [[GSU/AND|AND]] R<sub>n</sub>
* ADD #n
* [[GSU/AND|AND]] #n
* AND Rn
* [[ASR]]
* AND #n
* [[BIC]] R<sub>n</sub>
* ASR
* [[BIC]] #n
* BIC Rn
* [[CACHE]]
* BIC #n
* [[CMODE]]
* CACHE
* [[GSU/CMP|CMP]] R<sub>n</sub>
* CMODE
* [[COLOR]]
* CMP Rn
* [[GSU/DEC|DEC]] R<sub>n</sub>
* COLOR
* [[DIV2]]
* DEC Rn
* [[FMULT]]
* DIV2
* [[GETB]]
* FMULT
* [[GETBH]]
* GETB
* [[GETBL]]
* GETBH
* [[GETBS]]
* GETBL
* [[GETC]]
* GETBS
* [[HIB]]
* GETC
* [[IBT]] R<sub>n</sub>, #pp
* HIB
* [[GSU/INC|INC]] R<sub>n</sub>
* IBT Rn, #pp
* [[IWT]] R<sub>n</sub>, #xx
* INC Rn
* [[GSU/JMP|JMP]] R<sub>n</sub>
* IWT Rn, #xx
* [[LDB]] (R<sub>m</sub>)
* JMP Rn
* [[LDW]] (R<sub>m</sub>)
* LDB (Rm)
* [[LEA]] R<sub>n</sub>, xx
* LDW (Rm)
* [[LINK]] #n
* LEA Rn, xx
* [[LJMP]] R<sub>n</sub>
* LINK #n
* [[GSU/LM|LM]] R<sub>n</sub>, (xx)
* LJMP Rn
* [[LMS]] R<sub>n</sub>, (yy)
* LM Rn, (xx)
* [[LMULT]]
* LMS Rn, (yy)
* [[LOB]]
* LMULT
* [[LOOP]]
* LOB
* [[GSU/LSR|LSR]]
* LOOP
* [[MERGE]]
* LSR
* [[GSU/MOVE|MOVE]] R<sub>n</sub>, R<sub>n</sub>'
* MERGE
* [[MOVES]] R<sub>n</sub>, R<sub>n</sub>'
* MOVE Rn, Rn'
* [[MULT]] R<sub>n</sub>
* MOVES Rn, Rn'
* [[MULT]] #n
* MULT Rn
* [[GSU/NOP|NOP]]
* MULT #n
* [[NOT]]
* NOP
* [[OR]] R<sub>n</sub>
* NOT
* [[OR]] #n
* OR Rn
* [[PLOT]]
* OR #n
* [[RAMB]]
* PLOT
* [[GSU/ROL|ROL]]
* RAMB
* [[ROMB]]
* ROL
* [[GSU/ROR|ROR]]
* ROMB
* [[RPIX]]
* ROR
* [[GSU/SBC|SBC]] R<sub>n</sub>
* RPIX
* [[SBK]]
* SBC Rn
* [[SEX]]
* SBK
* [[SM]] (xx), R<sub>n</sub>
* SEX
* [[SMS]] (yy), R<sub>n</sub>
* SM (xx), Rn
* [[STB]] (R<sub>m</sub>)
* SMS (yy), Rn
* [[STOP]]
* STB (Rm)
* [[STW]] (R<sub>m</sub>)
* STOP
* [[SUB]] R<sub>n</sub>
* STW (Rm)
* [[SUB]] #n
* SUB Rn
* [[SWAP]]
* SUB #n
* [[UMULT]] R<sub>n</sub>
* SWAP
* and presumably UMULT #n and XOR too
* UMULT Rn
* and presumably UMULT #n too


=== See Also ===
=== See Also ===
* [[ALT3]]
* [[ALT3]]
 
* [[Super_FX_Opcode_Matrices#ALT1_=_0,_ALT2_=_0]]
=== See Also ===
* https://sneslab.net/wiki/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