You are on page 1of 1

2015/8/20

6502 Instruction Set

6502InstructionSet
HI

LONIBBLE
00

01

02

03

04

05

00 BRKimpl ORAX,ind ??? ??? ???

ORAzpg

10 BPLrel

ORAind,Y ??? ??? ???

20 JSRabs
30 BMIrel

06

08

09

0C

0D

0E

??? ???

ORAabs,X ASLabs,X ???

ANDX,ind ??? ??? BITzpg

ANDzpg

??? BITabs

ANDabs

ANDind,Y ??? ??? ???

ANDzpg,X ROLzpg,X ??? SECimpl ANDabs,Y ???

??? ???

ANDabs,X ROLabs,X ???

40 RTIimpl EORX,ind ??? ??? ???

EORzpg

??? JMPabs

EORabs

50 BVCrel

EORzpg,X LSRzpg,X ??? CLIimpl EORabs,Y ???

??? ???

EORabs,X LSRabs,X ???

60 RTSimpl ADCX,ind ??? ??? ???

ADCzpg

??? JMPind

ADCabs

70 BVSrel

ADCind,Y ??? ??? ???

ADCzpg,X RORzpg,X ??? SEIimpl ADCabs,Y ???

??? ???

ADCabs,X RORabs,X ???

80 ???

STAX,ind ??? ??? STYzpg

STAzpg

90 BCCrel

LSRzpg

RORzpg

??? PLAimpl ADC#

RORA

???

STAabs,X ???

???

A0 LDY#

LDAX,ind LDX#

LDAabs

???

B0 BCSrel

LDAind,Y ??? ??? LDYzpg,X LDAzpg,X LDXzpg,Y ??? CLVimpl LDAabs,Y TSXimpl ??? LDYabs,X LDAabs,X LDXabs,Y ???

C0 CPY#

CMPX,ind ??? ??? CPYzpg

CMPzpg

D0 BNErel

CMPind,Y ??? ??? ???

CMPzpg,X DECzpg,X ??? CLDimpl CMPabs,Y ???

E0 CPX#

SBCX,ind ??? ??? CPXzpg

SBCzpg

F0 BEQrel

SBCind,Y ??? ??? ???

SBCzpg,X INCzpg,X ??? SEDimpl SBCabs,Y ???

DECzpg

INCzpg

??? TAYimpl LDA#

??? INYimpl CMP#

??? INXimpl SBC#

TAXimpl ??? LDYabs

DEXimpl ??? CPYabs


??? ???

NOPimpl ??? CPXabs


??? ???

STAabs

RORabs

???

STAind,Y ??? ??? STYzpg,X STAzpg,X STXzpg,Y ??? TYAimpl STAabs,Y TXSimpl ??? ???
LDXzpg

TXAimpl ??? STYabs

LSRabs

???

???

LDAzpg

??? DEYimpl ???

LSRA

ROLabs

???

STXabs

??? LDYzpg

STXzpg

??? PHAimpl EOR#

ROLA

ASLabs

0F

ORAzpg,X ASLzpg,X ??? CLCimpl ORAabs,Y ???


??? PLPimpl AND#

ASLA

0B

ORAabs

ROLzpg

??? PHPimpl ORA#

0A

??? ???

EORind,Y ??? ??? ???

ASLzpg

07

CMPabs

LDXabs

DECabs

???

CMPabs,X DECabs,X ???


SBCabs

INCabs

???

SBCabs,X INCabs,X ???

AddressModes:
A

.... Accumulator

OPCA

operandisAC

abs

.... absolute

OPC$HHLL

operandisaddress$HHLL

abs,X .... absolute,Xindexed OPC$HHLL,X operandisaddressincrementedbyXwithcarry


abs,Y .... absolute,Yindexed OPC$HHLL,Y operandisaddressincrementedbyYwithcarry
#

.... immediate

OPC#$BB

operandisbyte(BB)

impl

.... implied

OPC

operandimplied

ind

.... indirect

OPC($HHLL) operandiseffectiveaddresseffectiveaddressisvalueofaddress

X,ind .... Xindexed,indirect OPC($BB,X) operandiseffectivezeropageaddresseffectiveaddressisbyte(BB)incrementedbyXwithoutcarry


ind,Y .... indirect,Yindexed OPC($LL),Y operandiseffectiveaddressincrementedbyYwithcarryeffectiveaddressiswordatzeropageaddress
rel

.... relative

OPC$BB

branchtargetisPC+offset(BB),bit7signifiesnegativeoffset

zpg

.... zeropage

OPC$LL

operandisofaddressaddresshibyte=zero($00xx)

http://e-tradition.net/bytes/6502/6502_instruction_set.html

1/17

You might also like