We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
SET1 (SPC700): Difference between revisions
From SnesLab
(→External Links: section 8.2.3.1) |
(→External Links: hid archive URL) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|'''Speed''' | |'''Speed''' | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|02 | |02 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|22 | |22 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|42 | |42 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|62 | |62 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|82 | |82 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|A2 | |A2 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|C2 | |C2 | ||
|2 bytes | |2 bytes | ||
|4 cycles | |4 cycles | ||
|+ | |+ | ||
|[[Direct Page Addressing | Direct Page]] | |[[Direct Page Bit Addressing | Direct Page Bit]] | ||
|E2 | |E2 | ||
|2 bytes | |2 bytes | ||
Line 70: | Line 70: | ||
|} | |} | ||
'''SET1''' is an [[SPC700]] command that sets a bit in a [[direct page]] byte. The byte following the opcode determines which byte. The | '''SET1''' is an [[SPC700]] command that sets a bit in a [[direct page]] byte. The byte following the opcode determines which byte. The most significant 3 bits of the opcode determines which bit within that byte. In Nintendo's manual, the high nybble of the opcode is called x and bit 4 of the opcode is always zero. | ||
No flags are affected. | |||
==== Syntax ==== | |||
<pre> | |||
SET1 dip. bit | |||
</pre> | |||
=== See Also === | === See Also === | ||
Line 76: | Line 83: | ||
* [[TSET1]] | * [[TSET1]] | ||
* [[SMB]] | * [[SMB]] | ||
* [[dip bit]] | |||
=== External Links === | === External Links === | ||
* Official Nintendo documentation on SET1: Table C-18 in [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I] | * Official Nintendo documentation on SET1: Table C-18 in [https://archive.org/details/SNESDevManual/book1/page/n234 Appendix C-9 of Book I] | ||
* | * subparagraph 8.2.3.1 of [https://archive.org/details/SNESDevManual/book1/page/n186 page 3-8-8], lbid. | ||
* [https://archive.org/details/SNESDevManual/book1/page/n226 Appendix C-1] | |||
* http://www.ffviman.fr/switch-snes/sf-sound.html | * http://www.ffviman.fr/switch-snes/sf-sound.html | ||
* anomie: https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L572 | |||
[[Category:ASM]] | [[Category:ASM]] |
Latest revision as of 04:25, 8 August 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Direct Page Bit | 02 | 2 bytes | 4 cycles | ||||
Direct Page Bit | 22 | 2 bytes | 4 cycles | ||||
Direct Page Bit | 42 | 2 bytes | 4 cycles | ||||
Direct Page Bit | 62 | 2 bytes | 4 cycles | ||||
Direct Page Bit | 82 | 2 bytes | 4 cycles | ||||
Direct Page Bit | A2 | 2 bytes | 4 cycles | ||||
Direct Page Bit | C2 | 2 bytes | 4 cycles | ||||
Direct Page Bit | E2 | 2 bytes | 4 cycles |
Flags Affected | |||||||
---|---|---|---|---|---|---|---|
N | V | P | B | H | I | Z | C |
. | . | . | . | . | . | . | . |
SET1 is an SPC700 command that sets a bit in a direct page byte. The byte following the opcode determines which byte. The most significant 3 bits of the opcode determines which bit within that byte. In Nintendo's manual, the high nybble of the opcode is called x and bit 4 of the opcode is always zero.
No flags are affected.
Syntax
SET1 dip. bit
See Also
External Links
- Official Nintendo documentation on SET1: Table C-18 in Appendix C-9 of Book I
- subparagraph 8.2.3.1 of page 3-8-8, lbid.
- Appendix C-1
- http://www.ffviman.fr/switch-snes/sf-sound.html
- anomie: https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L572