We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
ALT2: Difference between revisions
From SnesLab
(moved syntax to top) |
(added XOR) |
||
Line 122: | Line 122: | ||
* [[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 === |
Latest revision as of 00:49, 22 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 2) | 3E | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
. | . | 1 | . | . | . | . |
ALT2 is both the name of a Super FX flag and the flag prefix instruction that sets it. It is bit 9 of the status flag register.
Syntax
ALT2
The following instructions require ALT2:
Many instructions clear the ALT2 flag, including:
- ADC Rn
- ADC #n
- ADD Rn
- ADD #n
- AND Rn
- AND #n
- ASR
- BIC Rn
- BIC #n
- CACHE
- CMODE
- CMP Rn
- COLOR
- DEC Rn
- DIV2
- FMULT
- GETB
- GETBH
- GETBL
- GETBS
- GETC
- HIB
- IBT Rn, #pp
- INC Rn
- IWT Rn, #xx
- JMP Rn
- LDB (Rm)
- LDW (Rm)
- LEA Rn, xx
- LINK #n
- LJMP Rn
- LM Rn, (xx)
- LMS Rn, (yy)
- LMULT
- LOB
- LOOP
- LSR
- MERGE
- MOVE Rn, Rn'
- MOVES Rn, Rn'
- MULT Rn
- MULT #n
- NOP
- NOT
- OR Rn
- OR #n
- PLOT
- RAMB
- ROL
- ROMB
- ROR
- RPIX
- SBC Rn
- SBK
- SEX
- SM (xx), Rn
- SMS (yy), Rn
- STB (Rm)
- STOP
- STW (Rm)
- SUB Rn
- SUB #n
- SWAP
- UMULT Rn
- and presumably UMULT #n and XOR too
See Also
External Links
- Official Nintendo documentation on ALT2: 9.9 on page 2-9-8 of Book II
- Table 2-4-2 on page 2-4-4, lbid.