We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
STOP (Super FX): Difference between revisions
From SnesLab
(added flag clobber table) |
(→External Links: bsnes imp) |
||
(25 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) | |||
|00 | |||
|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]] | ||
|+ | |+ | ||
|0 | |0 | ||
Line 20: | Line 36: | ||
|. | |. | ||
|} | |} | ||
'''STOP''' is a [[Super FX]] instruction that clears the [[Go flag]], stopping the processor. An [[IRQ]] is generated. | |||
The [[ALT0]] state is restored. | |||
==== Syntax ==== | |||
<pre> | |||
STOP | |||
</pre> | |||
=== See Also === | |||
* [[STP]] | |||
* [[STOP (SPC700)]] | |||
=== External Links === | |||
* Official Super Nintendo development manual on STOP: 9.84 on [https://archive.org/details/SNESDevManual/book2/page/n272 page 2-9-116 of Book II] | |||
* 6.8.4 GSU Exclusive Operation in Cache RAM on page 2-6-12 of Book II | |||
* bsnes implementation: https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/superfx/core.cpp#L1 | |||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category: | [[Category:Super FX]] | ||
[[Category:GSU Control Instructions]] | |||
[[Category:One-byte Instructions]] | |||
[[Category:Single Admode Mnemonics]] |
Latest revision as of 09:50, 22 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied (type 2) | 00 | 1 byte | 3 cycles | 3 cycles | 1 cycle |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 | . | . | . | . |
STOP is a Super FX instruction that clears the Go flag, stopping the processor. An IRQ is generated.
The ALT0 state is restored.
Syntax
STOP
See Also
External Links
- Official Super Nintendo development manual on STOP: 9.84 on page 2-9-116 of Book II
- 6.8.4 GSU Exclusive Operation in Cache RAM on page 2-6-12 of Book II
- bsnes implementation: https://github.com/bsnes-emu/bsnes/blob/master/bsnes/sfc/coprocessor/superfx/core.cpp#L1