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
Jump to: navigation, search
(→‎External Links: more correct subparagraph terminology)
(added syntax)
Line 71: Line 71:


'''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.
'''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.
==== Syntax ====
<pre>
SET1 dip. bit
</pre>


=== See Also ===
=== See Also ===

Revision as of 20:37, 6 July 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.

Syntax

SET1 dip. bit

See Also

External Links