We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
XCN (SPC700): Difference between revisions
From SnesLab
(→External Links: anomie) |
(made affected flags more prominent) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 25: | Line 25: | ||
|[[Carry Flag|C]] | |[[Carry Flag|C]] | ||
|+ | |+ | ||
| | |N | ||
|. | |. | ||
|. | |. | ||
Line 31: | Line 31: | ||
|. | |. | ||
|. | |. | ||
| | |Z | ||
|. | |. | ||
|} | |} | ||
'''XCN''' is an [[SPC700]] instruction that swaps the high and low nibbles of the [[accumulator]]. | '''XCN''' is an [[SPC700]] instruction that swaps the high and low nibbles of the [[accumulator]]. Bits 0 to 3 become bits 4 to 7 and vice versa. | ||
==== Syntax ==== | ==== Syntax ==== | ||
Line 42: | Line 42: | ||
XCN A | XCN A | ||
</pre> | </pre> | ||
[[File:xcn.png]] | |||
=== See Also === | === See Also === |
Latest revision as of 03:14, 25 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
Accumulator | 9F | 1 byte | 5 cycles |
Flags Affected | |||||||
---|---|---|---|---|---|---|---|
N | V | P | B | H | I | Z | C |
N | . | . | . | . | . | Z | . |
XCN is an SPC700 instruction that swaps the high and low nibbles of the accumulator. Bits 0 to 3 become bits 4 to 7 and vice versa.
Syntax
XCN XCN A
See Also
External Links
- Official Nintendo documentation on XCN: Table C-10 in Appendix C-7 of Book I
- anomie: https://github.com/yupferris/TasmShiz/blob/master/spc700.txt#L609