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 (Super FX): Difference between revisions
From SnesLab
(linkify B) |
(→External Links: 9.29) |
||
Line 46: | Line 46: | ||
=== External Links === | === External Links === | ||
* Official Nintendo documentation on CMP: [https://archive.org/details/SNESDevManual/book2/page/n197 | * Official Nintendo documentation on CMP: 9.29 on [https://archive.org/details/SNESDevManual/book2/page/n197 page 2-9-41 of Book II] | ||
[[Category:ASM]] | [[Category:ASM]] | ||
[[Category:Super FX]] | [[Category:Super FX]] | ||
[[Category:Two-byte Instructions]] | [[Category:Two-byte Instructions]] |
Revision as of 20:43, 1 July 2024
Basic Info | |||||||
---|---|---|---|---|---|---|---|
Addressing Mode | Opcode | Length | ROM Speed | RAM Speed | Cache Speed | ||
Implied | 3F6n | 2 bytes | 6 cycles | 6 cycles | 2 cycles |
Flags Affected | ||||||||
---|---|---|---|---|---|---|---|---|
B | ALT1 | ALT2 | O/V | S | CY | Z | ||
0 | 0 | 0 |
CMP (Compare) is a Super FX instruction that compares the operand register with the source register. Internally, this is done via a subtraction, but the difference is not stored anywhere.
The operand can be any register from R0 to R15.
See Also
External Links
- Official Nintendo documentation on CMP: 9.29 on page 2-9-41 of Book II