We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
ALT3: Difference between revisions
From SnesLab
(ALT3 is not a flag) |
(→External Links: XOR ref) |
||
(27 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
''' | {| class="wikitable" style="float:right;clear:right;width:50%" | ||
!colspan="8"|Basic Info | |||
|+ | |||
|'''Addressing Mode''' | |||
|'''Opcode''' | |||
|'''Length''' | |||
|'''ROM Speed''' | |||
|'''RAM Speed''' | |||
|'''Cache Speed''' | |||
|+ | |||
|[[Implied]] (type 2) | |||
|3F | |||
|1 byte | |||
|3 cycles | |||
|3 cycles | |||
|1 cycle | |||
|} | |||
{| class="wikitable" style="float:right;clear:right;width:30%" | {| class="wikitable" style="float:right;clear:right;width:30%" | ||
!colspan="9"|Flags | !colspan="9"|Flags Affected | ||
|+ | |+ | ||
|B | |[[B Flag|B]] | ||
|ALT1 | |[[ALT1]] | ||
|ALT2 | |[[ALT2]] | ||
|O/V | |[[O/V]] | ||
|S | |[[Sign Flag|S]] | ||
|CY | |[[CY]] | ||
|Z | |[[Zero Flag|Z]] | ||
|+ | |+ | ||
| | |. | ||
|1 | |1 | ||
|1 | |1 | ||
Line 22: | Line 36: | ||
|. | |. | ||
|} | |} | ||
'''ALT3''' is a [[Super FX]] flag prefix instruction that sets both the [[ALT1]] and [[ALT2]] flags. | |||
Unlike ALT1 and ALT2 however, ALT3 is only an instruction and not also the name of a flag itself. | |||
==== Syntax ==== | |||
<pre> | |||
ALT3 | |||
</pre> | |||
The following instructions require ALT3: | |||
* [[ADC (Super FX)|ADC]] #n | |||
* [[BIC]] #n | |||
* [[CMP (Super FX)|CMP]] R<sub>n</sub> | |||
* [[GETBS]] | |||
* [[ROMB]] | |||
* [[XOR]] #n | |||
==== See Also ==== | |||
* [[ALT0]] | |||
* [[Super_FX_Opcode_Matrices#ALT1_=_1,_ALT2_=_1]] | |||
=== External Links === | |||
* Official Nintendo documentation on ALT3: 9.10 on [https://archive.org/details/SNESDevManual/book2/page/n165 page 2-9-9 of Book II] | |||
* Table 2-4-2 on [https://archive.org/details/SNESDevManual/book2/page/n110 page 2-4-4], lbid. | |||
* https://en.wikibooks.org/wiki/Super_NES_Programming/Super_FX_tutorial#Instruction_Set_Table | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category: | [[Category:Super FX]] | ||
[[Category:Flag Prefix Instructions]] | [[Category:Flag Prefix Instructions]] | ||
[[Category:One-byte Instructions]] |
Latest revision as of 00:54, 22 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 2) | 3F | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
. | 1 | 1 | . | . | . | . |
ALT3 is a Super FX flag prefix instruction that sets both the ALT1 and ALT2 flags.
Unlike ALT1 and ALT2 however, ALT3 is only an instruction and not also the name of a flag itself.
Syntax
ALT3
The following instructions require ALT3:
See Also
External Links
- Official Nintendo documentation on ALT3: 9.10 on page 2-9-9 of Book II
- Table 2-4-2 on page 2-4-4, lbid.
- https://en.wikibooks.org/wiki/Super_NES_Programming/Super_FX_tutorial#Instruction_Set_Table