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

Super FX Opcode Matrices: Difference between revisions

From SnesLab
Jump to: navigation, search
(added SWAP)
(added LOB)
Line 40: Line 40:
| 8x || || || || || || || || || || || || || || || ||
| 8x || || || || || || || || || || || || || || || ||
|-  
|-  
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || ||
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || [[LOB]] ||
|-  
|-  
| Ax || || || || || || || || || || || || || || || ||
| Ax || || || || || || || || || || || || || || || ||
Line 94: Line 94:
| 8x || || || || || || || || || || || || || || || ||
| 8x || || || || || || || || || || || || || || || ||
|-  
|-  
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || ||
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || [[LOB]] ||
|-  
|-  
| Ax || || || || || || || || || || || || || || || ||
| Ax || || || || || || || || || || || || || || || ||
Line 148: Line 148:
| 8x || || || || || || || || || || || || || || || ||
| 8x || || || || || || || || || || || || || || || ||
|-  
|-  
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || ||
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || [[LOB]] ||
|-  
|-  
| Ax || || || || || || || || || || || || || || || ||
| Ax || || || || || || || || || || || || || || || ||
Line 202: Line 202:
| 8x || || || || || || || || || || || || || || || ||
| 8x || || || || || || || || || || || || || || || ||
|-  
|-  
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || ||
| 9x || [[SBK]] || [[LINK]] #1 || [[LINK]] #2 || [[LINK]] #3 || [[LINK]] #4 || [[SEX]] || || || || || || || || || [[LOB]] ||
|-  
|-  
| Ax || || || || || || || || || || || || || || || ||
| Ax || || || || || || || || || || || || || || || ||

Revision as of 03:10, 25 May 2023

The Super FX has two prefix flags called ALT1 and ALT2 that alter the way the GSU interprets opcodes. These four opcode matrices will show which instruction actually runs depending on how those prefix flags are set.

ALT1 = 0, ALT2 = 0

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x STOP NOP CACHE LSR ROL BRA BGE BLT BNE BEQ BPL BMI BCC BCS BVC BVS
1x
2x
3x ALT1 ALT2 ALT3
4x SWAP COLOR
5x
6x
7x
8x
9x SBK LINK #1 LINK #2 LINK #3 LINK #4 SEX LOB
Ax
Bx
Cx
Dx
Ex
Fx

ALT1 = 0, ALT2 = 1

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x STOP NOP CACHE LSR ROL BRA BGE BLT BNE BEQ BPL BMI BCC BCS BVC BVS
1x
2x
3x ALT1 ALT2 ALT3
4x SWAP COLOR
5x
6x
7x
8x
9x SBK LINK #1 LINK #2 LINK #3 LINK #4 SEX LOB
Ax
Bx
Cx
Dx
Ex
Fx

ALT1 = 1, ALT2 = 0

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x STOP NOP CACHE LSR ROL BRA BGE BLT BNE BEQ BPL BMI BCC BCS BVC BVS
1x
2x
3x ALT1 ALT2 ALT3
4x SWAP COLOR
5x
6x
7x
8x
9x SBK LINK #1 LINK #2 LINK #3 LINK #4 SEX LOB
Ax
Bx
Cx
Dx
Ex
Fx

ALT1 = 1, ALT2 = 1

x0 x1 x2 x3 x4 x5 x6 x7 x8 x9 xA xB xC xD xE xF
0x STOP NOP CACHE LSR ROL BRA BGE BLT BNE BEQ BPL BMI BCC BCS BVC BVS
1x
2x
3x ALT1 ALT2 ALT3
4x SWAP COLOR
5x
6x
7x
8x
9x SBK LINK #1 LINK #2 LINK #3 LINK #4 SEX LOB
Ax
Bx
Cx
Dx
Ex
Fx