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
(removed scroll bar) |
(bolded source) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Mnemonics ending in "sk" may skip the next instruction. | |||
{| class="wikitable" | {| class="wikitable" | ||
!width="5%"| | !width="5%"| | ||
Line 26: | Line 28: | ||
| 3x || 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 || || || || || ? || out || out || set || clr || mov || ? || ret || retsk || || | | 4x || mov || xchg A,[HL] || xchgsk A,[HL+] || xchgsk A,[HL-] || neg A || ? || out || out || set || clr || mov || ? || ret || retsk || ? || ? | ||
|- | |- | ||
| 5x || || || || || || || || xchg || || || || || || || ??? || ? | | 5x || || || movsk A,[HL+] || ? || not A || in A,[L] || ? || xchg || ? || ? || ? || ? || mov X,A || xchg X,A || ??? || ? | ||
|- | |- | ||
| 6x || || || || || || || || || || || || || || || || | | 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|| || || || || || || || | | 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: | === See Also === | ||
* [[Checking Integrated Circuit]] | |||
=== Source === | |||
* https://problemkaputt.de/fullsnes.htm#snescartridgecicinstructionset | |||
[[Category:ASM]] | |||
[[Category:Tables]] |
Latest revision as of 06:23, 12 November 2024
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 |