We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
Source Register: Difference between revisions
From SnesLab
(subscripted n) |
(asm category) |
||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
The '''Source Register''' (S<sub>reg</sub>) exists on the [[Super FX]]. It is assigned with [[FROM]]. It supplies the input for many instructions, including: | The '''Source Register''' (S<sub>reg</sub>) exists on the [[Super FX]]. It is assigned with [[FROM]] or [[WITH]]. It supplies the input for many instructions, including: | ||
* ADC R<sub>n</sub> | * [[ADC (Super FX)|ADC]] R<sub>n</sub> | ||
* ADC #n | * [[ADC (Super FX)|ADC]] #n | ||
* ADD R<sub>n</sub> | * [[ADD]] R<sub>n</sub> | ||
* ADD #n | * [[ADD]] #n | ||
* AND R<sub>n</sub> | * [[AND (Super FX)|AND]] R<sub>n</sub> | ||
* AND #n | * [[AND (Super FX)|AND]] #n | ||
* ASR | * [[ASR]] | ||
* [[BIC]] | * [[BIC]] R<sub>n</sub> | ||
* BIC #n | * [[BIC]] #n | ||
* [[CMODE]] | * [[CMODE]] | ||
* CMP R<sub>n</sub> | * [[CMP (Super FX)|CMP]] R<sub>n</sub> | ||
* [[COLOR (Super FX)|COLOR]] | * [[COLOR (Super FX)|COLOR]] | ||
* [[DIV2]] | * [[DIV2]] | ||
Line 21: | Line 21: | ||
* [[LMULT]] | * [[LMULT]] | ||
* [[LOB]] | * [[LOB]] | ||
* LSR | * [[LSR (Super FX)|LSR]] | ||
* MULT R<sub>n</sub> | * [[MULT]] R<sub>n</sub> | ||
* MULT #n | * [[MULT]] #n | ||
* [[NOT (Super FX)|NOT]] | * [[NOT (Super FX)|NOT]] | ||
* OR R<sub>n</sub> | * [[OR]] R<sub>n</sub> | ||
* OR #n | * [[OR]] #n | ||
* [[RAMB]] | * [[RAMB]] | ||
* ROL | * [[ROL (Super FX)|ROL]] | ||
* [[ROMB]] | * [[ROMB]] | ||
* ROR | * [[ROR (Super FX)|ROR]] | ||
* SBC R<sub>n</sub> | * [[SBC (Super FX)|SBC]] R<sub>n</sub> | ||
* [[SBK]] | * [[SBK]] | ||
* [[SEX]] | * [[SEX]] | ||
* [[STB]] | * [[STB]] | ||
* [[STW]] | * [[STW]] | ||
* [[SUB]] | * [[SUB]] R<sub>n</sub> | ||
* SUB #n | * [[SUB]] #n | ||
* [[SWAP]] | * [[SWAP]] | ||
* [[UMULT]] | * [[UMULT]] | ||
Any register from R<sub>0</sub> to R<sub>15</sub> can serve as S<sub>reg</sub>. R<sub>0</sub> is the default. | |||
Some instructions ignore the source register. No instructions modify its value. | |||
=== See Also === | === See Also === | ||
Line 46: | Line 50: | ||
[[Category:Registers]] | [[Category:Registers]] | ||
[[Category:Super FX]] | [[Category:Super FX]] | ||
[[Category:ASM]] |
Latest revision as of 20:11, 4 August 2024
The Source Register (Sreg) exists on the Super FX. It is assigned with FROM or WITH. It supplies the input for many instructions, including:
- ADC Rn
- ADC #n
- ADD Rn
- ADD #n
- AND Rn
- AND #n
- ASR
- BIC Rn
- BIC #n
- CMODE
- CMP Rn
- COLOR
- DIV2
- FMULT
- GETBH
- GETBL
- HIB
- LJMP
- LMULT
- LOB
- LSR
- MULT Rn
- MULT #n
- NOT
- OR Rn
- OR #n
- RAMB
- ROL
- ROMB
- ROR
- SBC Rn
- SBK
- SEX
- STB
- STW
- SUB Rn
- SUB #n
- SWAP
- UMULT
Any register from R0 to R15 can serve as Sreg. R0 is the default.
Some instructions ignore the source register. No instructions modify its value.