6502 machine code table guide <html> version 6502 machine code table - orenwatson.be HOME

This file is the html version of 6502machinecode.asc. The big ol'table of 6502 opcodes makes more sense in octal. note: b is a byte operand, w is a word operand, [] means accessing memory at the address inside. Red opcodes are unofficial.

01234567
00BRKORA[[b+X]]XXSLO[[b+X]]?NOP[b]?ORA[b]ASL[b]SLO[b]?
01PHPORA bASL AANC b?NOP[w]?ORA[w]ASL[w]SLO[w]?
02BPL bORA[[b]+Y]XXSLO[[b]+Y]?NOP[b+X]?ORA[b+X]ASL[b+X]SLO[b+X]?
03CLCORA[w+Y]NOP?SLO[w+Y]?NOP[w+X]?ORA[w+X]ASL[w+X]SLO[w+X]?
04JSR wAND[[b+X]]XXRLA[[b+X]]?BIT[b]AND[b]ROL[b]RLA[b]?
05PLPAND bROL AANC b?BIT[w]AND[w]ROL[w]RLA[w]?
06BMI bAND[[b]+Y]XXRLA[[b]+Y]?NOP[b+X]?AND[b+X]ROL[b+X]RLA[b+X]?
07SECAND[w+Y]NOP?RLA[w+Y]?NOP[w+X]?AND[w+X]ROL[w+X]RLA[w+X]?
10RTIEOR[[b+X]]XXSRE[[b+X]]?NOP[b]?EOR[b]LSR[b]SRE[b]?
11PHAEOR bLSR AALR b?JMP wEOR[w]LSR[w]SRE[w]?
12BVC bEOR[[b]+Y]XXSRE[[b]+Y]?NOP[b+X]?EOR[b+X]LSR[b+X]SRE[b+X]?
13CLIEOR[w+Y]NOP?SRE[w+Y]?NOP[w+X]?EOR[w+X]LSR[w+X]SRE[w+X]?
14RTSADC[[b+X]]XXRRA[[b+X]]?NOP[b]?ADC[b]ROR[b]RRA[b]?
15PLAADC bROR AARR b?JMP[w]ADC[w]ROR[w]RRA[w]?
16BVS bADC[[b]+Y]XXRRA[[b]+Y]?NOP[b+X]?ADC[b+X]ROR[b+X]RRA[b+X]?
17SEIADC[w+Y]NOP?RRA[w+Y]?NOP[w+X]?ADC[w+X]ROR[w+X]RRA[w+X]?
20NOP b?STA[[b+X]]NOP b?SAX[[b+X]]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