Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > 6502 mnemonics definitions as compilable header file
2012-08-16 16:39
Monte Carlos

Registered: Jun 2004
Posts: 359
6502 mnemonics definitions as compilable header file

I'm currently searching through the internet for a list of 6502 mnemonics in the form

Instruction_NOP = $ea
Instruction_BITZP = $24
Instruction_LDAIMM = $A9

etc.

I want to use such a list to stadardize speedcode generation.
I do not want to define the opcode values again and again in every code where i need speedcode generation.
What i can find are lists of the instructions with explanations and some intruction to value correspondences as tables, but this is not the format to include it in a sourcecode for beeing able make something like

lda #Instruction_LDAIMM
sta (speedcodeptr),y
iny
lda #some value
sta (speedcodeptr),y

etc.

If someone knows about such an header file existing somewhere in the net i would be glad about getting a hint. Else i would have to create such a list by myself.

Yours Monte Carlos
2012-08-16 16:59
chatGPZ

Registered: Dec 2001
Posts: 11386
i would get a random crossassembler that has source available, take its opcode table, and write a small program that prints such list :)
2012-08-16 17:32
Monte Carlos

Registered: Jun 2004
Posts: 359
Do you know, where i can find such in the cc65 development tree?

Thx

Monte Carlos
2012-08-16 17:42
chatGPZ

Registered: Dec 2001
Posts: 11386
no sorry, never looked at the sources. should be easy to find by grepping for "lda" or so though :)
2012-08-16 19:33
Flavioweb

Registered: Nov 2011
Posts: 463
Can this help:
2012-08-16 19:34
Flavioweb

Registered: Nov 2011
Posts: 463
Can this help:

ADC#$NN = $69
ADC$NNNN = $6d
ADC$NNNN,X = $7d
ADC$NNNN,Y = $79
ADC$NN = $65
ADC$NN,X = $75
ADC($NN,X) = $61
ADC($NN),Y = $71
AND#$NN = $29
AND$NNNN = $2d
AND$NNNN,X = $3d
AND$NNNN,Y = $39
AND$NN = $25
AND$NN,X = $35
AND($NN,X) = $21
AND($NN),Y = $31
ASLA = $0a
ASL$NNNN = $0e
ASL$NNNN,X = $1e
ASL$NN = $06
ASL$NN,X = $16
BCC$NN = $90
BCS$NN = $b0
BEQ$NN = $f0
BIT$NNNN = $2c
BIT$NN = $24
BMI$NN = $30
BNE$NN = $d0
BPL$NN = $10
BRK = $00
BVC$NN = $50
BVS$NN = $70
CLC = $18
CLD = $d8
CLI = $58
CLV = $b8
CMP#$NN = $c9
CMP$NNNN = $cd
CMP$NNNN,X = $dd
CMP$NNNN,Y = $d9
CMP$NN = $c5
CMP$NN,X = $d5
CMP($NN,X) = $c1
CMP($NN),Y = $d1
CPX#$NN = $e0
CPX$NNNN = $ec
CPX$NN = $e4
CPY#$NN = $c0
CPY$NNNN = $cc
CPY$NN = $c4
DEC$NNNN = $ce
DEC$NNNN,X = $de
DEC$NN = $c6
DEC$NN,X = $d6
DEX = $ca
DEY = $88
EOR#$NN = $49
EOR$NNNN = $4d
EOR$NNNN,X = $5d
EOR$NNNN,Y = $59
EOR$NN = $45
EOR$NN,X = $55
EOR($NN,X) = $41
EOR($NN),Y = $51
INC$NNNN = $ee
INC$NNNN,X = $fe
INC$NN = $e6
INC$NN,X = $f6
INX = $e8
INY = $c8
JMP$NNNN = $4c
JMP$NN = $6c
JSR$NNNN = $20
LDA#$NN = $a9
LDA$NNNN = $ad
LDA$NNNN,X = $bd
LDA$NNNN,Y = $b9
LDA$NN = $a5
LDA$NN,X = $b5
LDA($NN,X) = $a1
LDA($NN),Y = $b1
LDX#$NN = $a2
LDX$NNNN = $ae
LDX$NNNN,Y = $be
LDX$NN = $a6
LDX$NN,Y = $b6
LDY#$NN = $a0
LDY$NNNN = $ac
LDY$NNNN,X = $bc
LDY$NN = $a4
LDY$NN,X = $b4
LSRA = $4a
LSR$NNNN = $4e
LSR$NNNN,X = $5e
LSR$NN = $46
LSR$NN,X = $56
NOP = $ea
ORA#$NN = $09
ORA$NNNN = $0d
ORA$NNNN,X = $1d
ORA$NNNN,Y = $19
ORA$NN = $05
ORA$NN,X = $15
ORA($NN,X) = $01
ORA($NN),Y = $11
PHA = $48
PHP = $08
PLA = $68
PLP = $28
ROLA = $2a
ROL$NNNN = $2e
ROL$NNNN,X = $3e
ROL$NN = $26
ROL$NN,X = $36
RORA = $6a
ROR$NNNN = $7e
ROR$NNNN,X = $6e
ROR$NN = $66
ROR$NN,X = $76
RTI = $40
RTS = $60
SBC#$NN = $e9
SBC$NNNN = $ed
SBC$NNNN,X = $fd
SBC$NNNN,Y = $f9
SBC$NN = $e5
SBC$NN,X = $f5
SBC($NN,X) = $e1
SBC($NN),Y = $f1
SEC = $38
SED = $f8
SEI = $78
STA$NNNN = $8d
STA$NNNN,X = $9d
STA$NNNN,Y = $99
STA$NN = $85
STA$NN,X = $95
STA($NN,X) = $81
STA($NN),Y = $91
STX$NNNN = $8e
STX$NN = $86
STX$NN,Y = $96
STY$NNNN = $8c
STY$NN = $84
STY$NN,X = $94
TAX = $aa
TAY = $a8
TSX = $ba
TXA = $8a
TXS = $9a
TYA = $98

?
2012-08-16 19:48
Stone

Registered: Oct 2006
Posts: 172
This should be easy to parse: ( Quick cut'n'paste from http://www.oxyron.de/html/opcodes02.html )
Opcode	imp	imm	zp	zpx	zpy	izx	izy	abs	abx	aby	ind	rel	
ORA	---	$09	$05	$15	---	$01	$11	$0D	$1D	$19	---	---	
AND	---	$29	$25	$35	---	$21	$31	$2D	$3D	$39	---	---	
EOR	---	$49	$45	$55	---	$41	$51	$4D	$5D	$59	---	---	
ADC	---	$69	$65	$75	---	$61	$71	$6D	$7D	$79	---	---	
SBC	---	$E9	$E5	$F5	---	$E1	$F1	$ED	$FD	$F9	---	---	
CMP	---	$C9	$C5	$D5	---	$C1	$D1	$CD	$DD	$D9	---	---	
CPX	---	$E0	$E4	---	---	---	---	$EC	---	---	---	---	
CPY	---	$C0	$C4	---	---	---	---	$CC	---	---	---	---	
DEC	---	---	$C6	$D6	---	---	---	$CE	$DE	---	---	---	
DEX	$CA	---	---	---	---	---	---	---	---	---	---	---	
DEY	$88	---	---	---	---	---	---	---	---	---	---	---	
INC	---	---	$E6	$F6	---	---	---	$EE	$FE	---	---	---	
INX	$E8	---	---	---	---	---	---	---	---	---	---	---	
INY	$C8	---	---	---	---	---	---	---	---	---	---	---	
ASL	$0A	---	$06	$16	---	---	---	$0E	$1E	---	---	---	
ROL	$2A	---	$26	$36	---	---	---	$2E	$3E	---	---	---	
LSR	$4A	---	$46	$56	---	---	---	$4E	$5E	---	---	---	
ROR	$6A	---	$66	$76	---	---	---	$6E	$7E	---	---	---	
LDA	---	$A9	$A5	$B5	---	$A1	$B1	$AD	$BD	$B9	---	---	
STA	---	---	$85	$95	---	$81	$91	$8D	$9D	$99	---	---	
LDX	---	$A2	$A6	---	$B6	---	---	$AE	---	$BE	---	---	
STX	---	---	$86	---	$96	---	---	$8E	---	---	---	---	
LDY	---	$A0	$A4	$B4	---	---	---	$AC	$BC	---	---	---	
STY	---	---	$84	$94	---	---	---	$8C	---	---	---	---	
TAX	$AA	---	---	---	---	---	---	---	---	---	---	---	
TXA	$8A	---	---	---	---	---	---	---	---	---	---	---	
TAY	$A8	---	---	---	---	---	---	---	---	---	---	---	
TYA	$98	---	---	---	---	---	---	---	---	---	---	---	
TSX	$BA	---	---	---	---	---	---	---	---	---	---	---	
TXS	$9A	---	---	---	---	---	---	---	---	---	---	---	
PLA	$68	---	---	---	---	---	---	---	---	---	---	---	
PHA	$48	---	---	---	---	---	---	---	---	---	---	---	
PLP	$28	---	---	---	---	---	---	---	---	---	---	---	
PHP	$08	---	---	---	---	---	---	---	---	---	---	---	
BPL	---	---	---	---	---	---	---	---	---	---	---	$10	
BMI	---	---	---	---	---	---	---	---	---	---	---	$30	
BVC	---	---	---	---	---	---	---	---	---	---	---	$50	
BVS	---	---	---	---	---	---	---	---	---	---	---	$70	
BCC	---	---	---	---	---	---	---	---	---	---	---	$90	
BCS	---	---	---	---	---	---	---	---	---	---	---	$B0	
BNE	---	---	---	---	---	---	---	---	---	---	---	$D0	
BEQ	---	---	---	---	---	---	---	---	---	---	---	$F0	
BRK	$00	---	---	---	---	---	---	---	---	---	---	---	
RTI	$40	---	---	---	---	---	---	---	---	---	---	---	
JSR	---	---	---	---	---	---	---	$20	---	---	---	---	
RTS	$60	---	---	---	---	---	---	---	---	---	---	---	
JMP	---	---	---	---	---	---	---	$4C	---	---	$6C	---	
BIT	---	---	$24	---	---	---	---	$2C	---	---	---	---	
CLC	$18	---	---	---	---	---	---	---	---	---	---	---	
SEC	$38	---	---	---	---	---	---	---	---	---	---	---	
CLD	$D8	---	---	---	---	---	---	---	---	---	---	---	
SED	$F8	---	---	---	---	---	---	---	---	---	---	---	
CLI	$58	---	---	---	---	---	---	---	---	---	---	---	
SEI	$78	---	---	---	---	---	---	---	---	---	---	---	
CLV	$B8	---	---	---	---	---	---	---	---	---	---	---	
NOP	$EA	---	---	---	---	---	---	---	---	---	---	---	
2012-08-16 20:02
Monte Carlos

Registered: Jun 2004
Posts: 359
I'll try Flavios table with replacing #$NN by _IMM, $NNNN by _ABS and so on. Then i add something like "OPC6502_" after every lineend character. This should be ok then. Is there also a table like Flavios with illegals out there?

Thank you!

Monte Carlos
2012-08-16 20:16
Monte Carlos

Registered: Jun 2004
Posts: 359
Maybe this is also of use for someone else?

Top: Assembler defines
Bottom: C defines (->6502.h)

OPC6502_ADC_IMM = $69
OPC6502_ADC_ABS = $6d
OPC6502_ADC_ABSX = $7d
OPC6502_ADC_ABSY = $79
OPC6502_ADC_ZP = $65
OPC6502_ADC_ZPX = $75
OPC6502_ADC_XIND = $61
OPC6502_ADC_INDY = $71
OPC6502_AND_IMM = $29
OPC6502_AND_ABS = $2d
OPC6502_AND_ABSX = $3d
OPC6502_AND_ABSY = $39
OPC6502_AND_ZP = $25
OPC6502_AND_ZPX = $35
OPC6502_AND_XIND = $21
OPC6502_AND_INDY = $31
OPC6502_ASL = $0a
OPC6502_ASL_ABS = $0e
OPC6502_ASL_ABSX = $1e
OPC6502_ASL_ZP = $06
OPC6502_ASL_ZPX = $16
OPC6502_BCC = $90
OPC6502_BCS = $b0
OPC6502_BEQ = $f0
OPC6502_BIT_ABS = $2c
OPC6502_BIT_ZP = $24
OPC6502_BMI = $30
OPC6502_BNE = $d0
OPC6502_BPL = $10
OPC6502_BRK = $00
OPC6502_BVC = $50
OPC6502_BVS = $70
OPC6502_CLC = $18
OPC6502_CLD = $d8
OPC6502_CLI = $58
OPC6502_CLV = $b8
OPC6502_CMP_IMM = $c9
OPC6502_CMP_ABS = $cd
OPC6502_CMP_ABSX = $dd
OPC6502_CMP_ABSY = $d9
OPC6502_CMP_ZP = $c5
OPC6502_CMP_ZPX = $d5
OPC6502_CMP_XIND = $c1
OPC6502_CMP_INDY = $d1
OPC6502_CPX_IMM = $e0
OPC6502_CPX_ABS = $ec
OPC6502_CPX_ZP = $e4
OPC6502_CPY_IMM = $c0
OPC6502_CPY_ABS = $cc
OPC6502_CPY_ZP = $c4
OPC6502_DEC_ABS = $ce
OPC6502_DEC_ABSX = $de
OPC6502_DEC_ZP = $c6
OPC6502_DEC_ZPX = $d6
OPC6502_DEX = $ca
OPC6502_DEY = $88
OPC6502_EOR_IMM = $49
OPC6502_EOR_ABS = $4d
OPC6502_EOR_ABSX = $5d
OPC6502_EOR_ABSY = $59
OPC6502_EOR_ZP = $45
OPC6502_EOR_ZPX = $55
OPC6502_EOR_XIND = $41
OPC6502_EOR_INDY = $51
OPC6502_INC_ABS = $ee
OPC6502_INC_ABSX = $fe
OPC6502_INC_ZP = $e6
OPC6502_INC_ZPX = $f6
OPC6502_INX = $e8
OPC6502_INY = $c8
OPC6502_JMP_ABS = $4c
OPC6502_JMP_IND = $6c
OPC6502_JSR_ABS = $20
OPC6502_LDA_IMM = $a9
OPC6502_LDA_ABS = $ad
OPC6502_LDA_ABSX = $bd
OPC6502_LDA_ABSY = $b9
OPC6502_LDA_ZP = $a5
OPC6502_LDA_ZPX = $b5
OPC6502_LDA_XIND = $a1
OPC6502_LDA_INDY = $b1
OPC6502_LDX_IMM = $a2
OPC6502_LDX_ABS = $ae
OPC6502_LDX_ABSY = $be
OPC6502_LDX_ZP = $a6
OPC6502_LDX_ZPY = $b6
OPC6502_LDY_IMM = $a0
OPC6502_LDY_ABS = $ac
OPC6502_LDY_ABSX = $bc
OPC6502_LDY_ZP = $a4
OPC6502_LDY_ZPX = $b4
OPC6502_LSRA = $4a
OPC6502_LSR_ABS = $4e
OPC6502_LSR_ABSX = $5e
OPC6502_LSR_ZP = $46
OPC6502_LSR_ZPX = $56
OPC6502_NOP = $ea
OPC6502_ORA_IMM = $09
OPC6502_ORA_ABS = $0d
OPC6502_ORA_ABSX = $1d
OPC6502_ORA_ABSY = $19
OPC6502_ORA_ZP = $05
OPC6502_ORA_ZPX = $15
OPC6502_ORA_XIND = $01
OPC6502_ORA_INDY = $11
OPC6502_PHA = $48
OPC6502_PHP = $08
OPC6502_PLA = $68
OPC6502_PLP = $28
OPC6502_ROLA = $2a
OPC6502_ROL_ABS = $2e
OPC6502_ROL_ABSX = $3e
OPC6502_ROL_ZP = $26
OPC6502_ROL_ZPX = $36
OPC6502_RORA = $6a
OPC6502_ROR_ABS = $7e
OPC6502_ROR_ABSX = $6e
OPC6502_ROR_ZP = $66
OPC6502_ROR_ZPX = $76
OPC6502_RTI = $40
OPC6502_RTS = $60
OPC6502_SBC_IMM = $e9
OPC6502_SBC_ABS = $ed
OPC6502_SBC_ABSX = $fd
OPC6502_SBC_ABSY = $f9
OPC6502_SBC_ZP = $e5
OPC6502_SBC_ZPX = $f5
OPC6502_SBC_XIND = $e1
OPC6502_SBC_INDY = $f1
OPC6502_SEC = $38
OPC6502_SED = $f8
OPC6502_SEI = $78
OPC6502_STA_ABS = $8d
OPC6502_STA_ABSX = $9d
OPC6502_STA_ABSY = $99
OPC6502_STA_ZP = $85
OPC6502_STA_ZPX = $95
OPC6502_STA_XIND = $81
OPC6502_STA_INDY = $91
OPC6502_STX_ABS = $8e
OPC6502_STX_ZP = $86
OPC6502_STX_ZPY = $96
OPC6502_STY_ABS = $8c
OPC6502_STY_ZP = $84
OPC6502_STY_ZPX = $94
OPC6502_TAX = $aa
OPC6502_TAY = $a8
OPC6502_TSX = $ba
OPC6502_TXA = $8a
OPC6502_TXS = $9a
OPC6502_TYA = $98

#define OPC6502_ADC_IMM $69
#define OPC6502_ADC_ABS $6d
#define OPC6502_ADC_ABSX $7d
#define OPC6502_ADC_ABSY $79
#define OPC6502_ADC_ZP $65
#define OPC6502_ADC_ZPX $75
#define OPC6502_ADC_XIND $61
#define OPC6502_ADC_INDY $71
#define OPC6502_AND_IMM $29
#define OPC6502_AND_ABS $2d
#define OPC6502_AND_ABSX $3d
#define OPC6502_AND_ABSY $39
#define OPC6502_AND_ZP $25
#define OPC6502_AND_ZPX $35
#define OPC6502_AND_XIND $21
#define OPC6502_AND_INDY $31
#define OPC6502_ASL $0a
#define OPC6502_ASL_ABS $0e
#define OPC6502_ASL_ABSX $1e
#define OPC6502_ASL_ZP $06
#define OPC6502_ASL_ZPX $16
#define OPC6502_BCC $90
#define OPC6502_BCS $b0
#define OPC6502_BEQ $f0
#define OPC6502_BIT_ABS $2c
#define OPC6502_BIT_ZP $24
#define OPC6502_BMI $30
#define OPC6502_BNE $d0
#define OPC6502_BPL $10
#define OPC6502_BRK $00
#define OPC6502_BVC $50
#define OPC6502_BVS $70
#define OPC6502_CLC $18
#define OPC6502_CLD $d8
#define OPC6502_CLI $58
#define OPC6502_CLV $b8
#define OPC6502_CMP_IMM $c9
#define OPC6502_CMP_ABS $cd
#define OPC6502_CMP_ABSX $dd
#define OPC6502_CMP_ABSY $d9
#define OPC6502_CMP_ZP $c5
#define OPC6502_CMP_ZPX $d5
#define OPC6502_CMP_XIND $c1
#define OPC6502_CMP_INDY $d1
#define OPC6502_CPX_IMM $e0
#define OPC6502_CPX_ABS $ec
#define OPC6502_CPX_ZP $e4
#define OPC6502_CPY_IMM $c0
#define OPC6502_CPY_ABS $cc
#define OPC6502_CPY_ZP $c4
#define OPC6502_DEC_ABS $ce
#define OPC6502_DEC_ABSX $de
#define OPC6502_DEC_ZP $c6
#define OPC6502_DEC_ZPX $d6
#define OPC6502_DEX $ca
#define OPC6502_DEY $88
#define OPC6502_EOR_IMM $49
#define OPC6502_EOR_ABS $4d
#define OPC6502_EOR_ABSX $5d
#define OPC6502_EOR_ABSY $59
#define OPC6502_EOR_ZP $45
#define OPC6502_EOR_ZPX $55
#define OPC6502_EOR_XIND $41
#define OPC6502_EOR_INDY $51
#define OPC6502_INC_ABS $ee
#define OPC6502_INC_ABSX $fe
#define OPC6502_INC_ZP $e6
#define OPC6502_INC_ZPX $f6
#define OPC6502_INX $e8
#define OPC6502_INY $c8
#define OPC6502_JMP_ABS $4c
#define OPC6502_JMP_IND $6c
#define OPC6502_JSR_ABS $20
#define OPC6502_LDA_IMM $a9
#define OPC6502_LDA_ABS $ad
#define OPC6502_LDA_ABSX $bd
#define OPC6502_LDA_ABSY $b9
#define OPC6502_LDA_ZP $a5
#define OPC6502_LDA_ZPX $b5
#define OPC6502_LDA_XIND $a1
#define OPC6502_LDA_INDY $b1
#define OPC6502_LDX_IMM $a2
#define OPC6502_LDX_ABS $ae
#define OPC6502_LDX_ABSY $be
#define OPC6502_LDX_ZP $a6
#define OPC6502_LDX_ZPY $b6
#define OPC6502_LDY_IMM $a0
#define OPC6502_LDY_ABS $ac
#define OPC6502_LDY_ABSX $bc
#define OPC6502_LDY_ZP $a4
#define OPC6502_LDY_ZPX $b4
#define OPC6502_LSRA $4a
#define OPC6502_LSR_ABS $4e
#define OPC6502_LSR_ABSX $5e
#define OPC6502_LSR_ZP $46
#define OPC6502_LSR_ZPX $56
#define OPC6502_NOP $ea
#define OPC6502_ORA_IMM $09
#define OPC6502_ORA_ABS $0d
#define OPC6502_ORA_ABSX $1d
#define OPC6502_ORA_ABSY $19
#define OPC6502_ORA_ZP $05
#define OPC6502_ORA_ZPX $15
#define OPC6502_ORA_XIND $01
#define OPC6502_ORA_INDY $11
#define OPC6502_PHA $48
#define OPC6502_PHP $08
#define OPC6502_PLA $68
#define OPC6502_PLP $28
#define OPC6502_ROLA $2a
#define OPC6502_ROL_ABS $2e
#define OPC6502_ROL_ABSX $3e
#define OPC6502_ROL_ZP $26
#define OPC6502_ROL_ZPX $36
#define OPC6502_RORA $6a
#define OPC6502_ROR_ABS $7e
#define OPC6502_ROR_ABSX $6e
#define OPC6502_ROR_ZP $66
#define OPC6502_ROR_ZPX $76
#define OPC6502_RTI $40
#define OPC6502_RTS $60
#define OPC6502_SBC_IMM $e9
#define OPC6502_SBC_ABS $ed
#define OPC6502_SBC_ABSX $fd
#define OPC6502_SBC_ABSY $f9
#define OPC6502_SBC_ZP $e5
#define OPC6502_SBC_ZPX $f5
#define OPC6502_SBC_XIND $e1
#define OPC6502_SBC_INDY $f1
#define OPC6502_SEC $38
#define OPC6502_SED $f8
#define OPC6502_SEI $78
#define OPC6502_STA_ABS $8d
#define OPC6502_STA_ABSX $9d
#define OPC6502_STA_ABSY $99
#define OPC6502_STA_ZP $85
#define OPC6502_STA_ZPX $95
#define OPC6502_STA_XIND $81
#define OPC6502_STA_INDY $91
#define OPC6502_STX_ABS $8e
#define OPC6502_STX_ZP $86
#define OPC6502_STX_ZPY $96
#define OPC6502_STY_ABS $8c
#define OPC6502_STY_ZP $84
#define OPC6502_STY_ZPX $94
#define OPC6502_TAX $aa
#define OPC6502_TAY $a8
#define OPC6502_TSX $ba
#define OPC6502_TXA $8a
#define OPC6502_TXS $9a
#define OPC6502_TYA $98
2012-08-16 20:16
Stone

Registered: Oct 2006
Posts: 172
Didn't see Flavio's table there.. That's even easier.
2012-08-16 20:23
Monte Carlos

Registered: Jun 2004
Posts: 359
It was generated some minutes ago from Flavios table by search and replace.

Here is the corrected C version. I forgot to replace $ by 0x

#define OPC6502_ADC_IMM 0x69
#define OPC6502_ADC_ABS 0x6d
#define OPC6502_ADC_ABSX 0x7d
#define OPC6502_ADC_ABSY 0x79
#define OPC6502_ADC_ZP 0x65
#define OPC6502_ADC_ZPX 0x75
#define OPC6502_ADC_XIND 0x61
#define OPC6502_ADC_INDY 0x71
#define OPC6502_AND_IMM 0x29
#define OPC6502_AND_ABS 0x2d
#define OPC6502_AND_ABSX 0x3d
#define OPC6502_AND_ABSY 0x39
#define OPC6502_AND_ZP 0x25
#define OPC6502_AND_ZPX 0x35
#define OPC6502_AND_XIND 0x21
#define OPC6502_AND_INDY 0x31
#define OPC6502_ASL 0x0a
#define OPC6502_ASL_ABS 0x0e
#define OPC6502_ASL_ABSX 0x1e
#define OPC6502_ASL_ZP 0x06
#define OPC6502_ASL_ZPX 0x16
#define OPC6502_BCC 0x90
#define OPC6502_BCS 0xb0
#define OPC6502_BEQ 0xf0
#define OPC6502_BIT_ABS 0x2c
#define OPC6502_BIT_ZP 0x24
#define OPC6502_BMI 0x30
#define OPC6502_BNE 0xd0
#define OPC6502_BPL 0x10
#define OPC6502_BRK 0x00
#define OPC6502_BVC 0x50
#define OPC6502_BVS 0x70
#define OPC6502_CLC 0x18
#define OPC6502_CLD 0xd8
#define OPC6502_CLI 0x58
#define OPC6502_CLV 0xb8
#define OPC6502_CMP_IMM 0xc9
#define OPC6502_CMP_ABS 0xcd
#define OPC6502_CMP_ABSX 0xdd
#define OPC6502_CMP_ABSY 0xd9
#define OPC6502_CMP_ZP 0xc5
#define OPC6502_CMP_ZPX 0xd5
#define OPC6502_CMP_XIND 0xc1
#define OPC6502_CMP_INDY 0xd1
#define OPC6502_CPX_IMM 0xe0
#define OPC6502_CPX_ABS 0xec
#define OPC6502_CPX_ZP 0xe4
#define OPC6502_CPY_IMM 0xc0
#define OPC6502_CPY_ABS 0xcc
#define OPC6502_CPY_ZP 0xc4
#define OPC6502_DEC_ABS 0xce
#define OPC6502_DEC_ABSX 0xde
#define OPC6502_DEC_ZP 0xc6
#define OPC6502_DEC_ZPX 0xd6
#define OPC6502_DEX 0xca
#define OPC6502_DEY 0x88
#define OPC6502_EOR_IMM 0x49
#define OPC6502_EOR_ABS 0x4d
#define OPC6502_EOR_ABSX 0x5d
#define OPC6502_EOR_ABSY 0x59
#define OPC6502_EOR_ZP 0x45
#define OPC6502_EOR_ZPX 0x55
#define OPC6502_EOR_XIND 0x41
#define OPC6502_EOR_INDY 0x51
#define OPC6502_INC_ABS 0xee
#define OPC6502_INC_ABSX 0xfe
#define OPC6502_INC_ZP 0xe6
#define OPC6502_INC_ZPX 0xf6
#define OPC6502_INX 0xe8
#define OPC6502_INY 0xc8
#define OPC6502_JMP_ABS 0x4c
#define OPC6502_JMP_IND 0x6c
#define OPC6502_JSR_ABS 0x20
#define OPC6502_LDA_IMM 0xa9
#define OPC6502_LDA_ABS 0xad
#define OPC6502_LDA_ABSX 0xbd
#define OPC6502_LDA_ABSY 0xb9
#define OPC6502_LDA_ZP 0xa5
#define OPC6502_LDA_ZPX 0xb5
#define OPC6502_LDA_XIND 0xa1
#define OPC6502_LDA_INDY 0xb1
#define OPC6502_LDX_IMM 0xa2
#define OPC6502_LDX_ABS 0xae
#define OPC6502_LDX_ABSY 0xbe
#define OPC6502_LDX_ZP 0xa6
#define OPC6502_LDX_ZPY 0xb6
#define OPC6502_LDY_IMM 0xa0
#define OPC6502_LDY_ABS 0xac
#define OPC6502_LDY_ABSX 0xbc
#define OPC6502_LDY_ZP 0xa4
#define OPC6502_LDY_ZPX 0xb4
#define OPC6502_LSRA 0x4a
#define OPC6502_LSR_ABS 0x4e
#define OPC6502_LSR_ABSX 0x5e
#define OPC6502_LSR_ZP 0x46
#define OPC6502_LSR_ZPX 0x56
#define OPC6502_NOP 0xea
#define OPC6502_ORA_IMM 0x09
#define OPC6502_ORA_ABS 0x0d
#define OPC6502_ORA_ABSX 0x1d
#define OPC6502_ORA_ABSY 0x19
#define OPC6502_ORA_ZP 0x05
#define OPC6502_ORA_ZPX 0x15
#define OPC6502_ORA_XIND 0x01
#define OPC6502_ORA_INDY 0x11
#define OPC6502_PHA 0x48
#define OPC6502_PHP 0x08
#define OPC6502_PLA 0x68
#define OPC6502_PLP 0x28
#define OPC6502_ROLA 0x2a
#define OPC6502_ROL_ABS 0x2e
#define OPC6502_ROL_ABSX 0x3e
#define OPC6502_ROL_ZP 0x26
#define OPC6502_ROL_ZPX 0x36
#define OPC6502_RORA 0x6a
#define OPC6502_ROR_ABS 0x7e
#define OPC6502_ROR_ABSX 0x6e
#define OPC6502_ROR_ZP 0x66
#define OPC6502_ROR_ZPX 0x76
#define OPC6502_RTI 0x40
#define OPC6502_RTS 0x60
#define OPC6502_SBC_IMM 0xe9
#define OPC6502_SBC_ABS 0xed
#define OPC6502_SBC_ABSX 0xfd
#define OPC6502_SBC_ABSY 0xf9
#define OPC6502_SBC_ZP 0xe5
#define OPC6502_SBC_ZPX 0xf5
#define OPC6502_SBC_XIND 0xe1
#define OPC6502_SBC_INDY 0xf1
#define OPC6502_SEC 0x38
#define OPC6502_SED 0xf8
#define OPC6502_SEI 0x78
#define OPC6502_STA_ABS 0x8d
#define OPC6502_STA_ABSX 0x9d
#define OPC6502_STA_ABSY 0x99
#define OPC6502_STA_ZP 0x85
#define OPC6502_STA_ZPX 0x95
#define OPC6502_STA_XIND 0x81
#define OPC6502_STA_INDY 0x91
#define OPC6502_STX_ABS 0x8e
#define OPC6502_STX_ZP 0x86
#define OPC6502_STX_ZPY 0x96
#define OPC6502_STY_ABS 0x8c
#define OPC6502_STY_ZP 0x84
#define OPC6502_STY_ZPX 0x94
#define OPC6502_TAX 0xaa
#define OPC6502_TAY 0xa8
#define OPC6502_TSX 0xba
#define OPC6502_TXA 0x8a
#define OPC6502_TXS 0x9a
#define OPC6502_TYA 0x98
 
... 7 posts hidden. Click here to view all posts....
 
Previous - 1 | 2 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Dymo/G★P
Acidchild/Padua
Bieno/Commodore Plus
kbs/Pht/Lxt
MWR/Visdom
Guests online: 112
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.116 sec.