We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
CMP (SPC700): Difference between revisions
From SnesLab
(made basic info table shorter) |
(moved tables up) |
||
Line 1: | Line 1: | ||
{| class="wikitable" style="float:right;clear:right;width:40%" | {| class="wikitable" style="float:right;clear:right;width:40%" | ||
!colspan="8"|Basic Info | !colspan="8"|Basic Info | ||
Line 121: | Line 119: | ||
| | | | ||
|} | |} | ||
'''CMP''' is an [[SPC700]] instruction that compares. | |||
=== See Also === | === See Also === |
Revision as of 19:15, 18 July 2023
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | Speed | ||||
immediate | 68 | 2 bytes | 2 cycles | ||||
66 | 1 bytes | 3 cycles | |||||
64 | 2 bytes | 3 cycles | |||||
74 | 2 bytes | 4 cycles | |||||
65 | 3 bytes | 4 cycles | |||||
75 | 3 bytes | 5 cycles | |||||
76 | 3 bytes | 5 cycles | |||||
67 | 2 byte | 6 cycles | |||||
77 | 2 bytes | 6 cycles | |||||
79 | 1 bytes | 5 cycles | |||||
69 | 3 bytes | 6 cycles | |||||
78 | 3 bytes | 5 cycles | |||||
C8 | 2 bytes | 2 cycles | |||||
3E | 2 bytes | 3 cycles | |||||
1E | 3 bytes | 4 cycles | |||||
AD | 2 bytes | 2 cycles | |||||
7E | 2 bytes | 3 cycles | |||||
5E | 3 bytes | 4 cycles |
Flags Affected | |||||||
---|---|---|---|---|---|---|---|
N | V | P | B | H | I | Z | C |
. | . | . | . | . |
CMP is an SPC700 instruction that compares.
See Also
External Links
- Official Super Nintendo development manual on CMP: Appendix C-5 of Book I