We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS
CIC Opcode Matrix: Difference between revisions
From SnesLab
(added some 7x mnemonics) |
(note about skipping) |
||
Line 1: | Line 1: | ||
Mnemonics ending in "sk" may skip the next instruction. | |||
{| class="wikitable" | {| class="wikitable" | ||
!width="5%"| | !width="5%"| |
Revision as of 22:50, 20 April 2023
Mnemonics ending in "sk" may skip the next instruction.
x0 | x1 | x2 | x3 | x4 | x5 | x6 | x7 | x8 | x9 | xA | xB | xC | xD | xE | xF | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x | nop | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk | addsk |
1x | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk | cmpsk |
2x | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov |
3x | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov | mov |
4x | mov | xchg A,[HL] | xchgsk A,[HL+] | xchgsk A,[HL-] | neg A | ? | out | out | set | clr | mov | ? | ret | retsk | ? | ? |
5x | movsk A,[HL+] | ? | not A | in A,[L] | ? | xchg | ? | ? | ? | ? | mov X,A | xchg X,A | ??? | ? | ||
6x | testsk | testsk | testsk | testsk | testsk | testsk | testsk | testsk | clr | clr | clr | clr | set | set | set | set |
7x | add A,[HL] | ? | adc A,[HL] | adcsk A,[HL] | mov H, 0 | mov H, 1 | mov H, 2 | mov H, 3 | jmp | jmp | jmp | jmp | call | call | call | call |
Source:
https://problemkaputt.de/fullsnes.htm#snescartridgecicinstructionset