-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathml-cpu-6502.txt
43 lines (40 loc) · 2.47 KB
/
ml-cpu-6502.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
CBM-Transfer Disassembler Opcode File
MOS 6502 and Variants (Legal Opcodes Only)
0--- 1--- 2--- 3--- 4--- 5--- 6--- 7--- 8--- 9--- a--- b--- c--- d--- e--- f---
brki,orak,???i,???i,???i,orac,aslc,???i,phpi,orab,asla,???i,???i,oraf,aslf,???i
bplj,oral,???i,???i,???i,orad,asld,???i,clci,orah,???i,???i,???i,orag,aslg,???i
jsrf,andk,???i,???i,bitc,andc,rolc,???i,plpi,andb,rola,???i,bitf,andf,rolf,???i
bmij,andl,???i,???i,???i,andd,rold,???i,seci,andh,???i,???i,???i,andg,rolg,???i
rtii,eork,???i,???i,???i,eorc,lsrc,???i,phai,eorb,lsra,???i,jmpf,eorf,lsrf,???i
bvcj,eorl,???i,???i,???i,eord,lsrd,???i,clii,eorh,???i,???i,???i,eorg,lsrg,???i
rtsi,adck,???i,???i,???i,adcc,rorc,???i,plai,adcb,rora,???i,jmpm,adcf,rorf,???i
bvsj,adcl,???i,???i,???i,adcd,rord,???i,seii,adch,???i,???i,???i,adcg,rorg,???i
???i,stak,???i,???i,styc,stac,stxc,???i,deyi,???i,txai,???i,styf,staf,stxf,???i
bccj,stal,???i,???i,styd,stad,stxe,???i,tyai,stah,txsi,???i,???i,stag,???i,???i
ldyb,ldak,ldxb,???i,ldyc,ldac,ldxc,???i,tayi,ldab,taxi,???i,ldyf,ldaf,ldxf,???i
bcsj,ldal,???i,???i,ldyd,ldad,ldxe,???i,clvi,ldah,tsxi,???i,ldyg,ldag,ldxh,???i
cpyb,cmpk,???i,???i,cpyc,cmpc,decc,???i,inyi,cmpb,dexi,???i,cpyf,cmpf,decf,???i
bnej,cmpl,???i,???i,???i,cmpd,decd,???i,cldi,cmph,???i,???i,???i,cmpg,decg,???i
cpxb,sbck,???i,???i,cpxc,sbcc,incc,???i,inxi,sbcb,nopi,???i,cpxf,sbcf,incf,???i
beqj,sbcl,???i,???i,???i,sbcd,incd,???i,sedi,sbch,???i,???i,???i,sbcg,incg,???i
0--- 1--- 2--- 3--- 4--- 5--- 6--- 7--- 8--- 9--- a--- b--- c--- d--- e--- f---
1222233312223
JMP
JSR BEQ BNE BPL BMI BCC BCS BVC BVS
RTS RTI BRK
----------------------------------------------- Do not modify the above lines!
C MODE LEN Addressing Mode Example
- ---- --- ---------------- -------
a acc 1 Accumulator Adressing............... INC
b imm 2 Immediate Addressing................ LDA #$01
c zp 2 Zero Page........................... LDA $01
d zpx 2 Indexed Zero page with X............ LDA $01,X
e zpy 2 Indexed Zero page with Y............ LDA $01,Y
f abs 3 Absolute Addressing................. LDA $1234
g abx 3 Indexed Absolute with X............. LDA $1234,X
h aby 3 Indexed Absolute with Y............. LDA $1234,Y
i imp 1 Implied............................. NOP
j rel 2 Relative Addressing................. BNE XX
k izx 2 Indexed Indirect Addressing with X.. LDA ($01,X)
l izy 2 Indexed Indirect Addressing with Y.. LDA ($01),Y
m ind 3 Absolute Indirect................... JMP ($1234)