6510 instruction chart: Hi Low +-------+--------+-------+---------+--------+--------+--------+--------+ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | --+-------+--------+-------+---------+--------+--------+--------+--------+ 0 | BRK s |ORA(z,x)| JAM i | SLO(z,x)| NOP z | ORA z | ASL z | SLO z | | 2 7 | 2 6 | 1 - | 2 8 | 2 3 | 2 3 | 2 5 | 2 5 | +-------+--------+-------+---------+--------+--------+--------+--------+ 1 | BPL r |ORA(z),y| JAM i | SLO(z),y| NOP z,x| ORA z,x| ASL z,x| SLO z,x| | 2 2* | 2 5* | 1 - | 2 8 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+-------+---------+--------+--------+--------+--------+ 2 | JSR a |AND(z,x)| JAM i | RLA(z,x)| BIT z | AND z | ROL z | RLA z | | 3 6 | 2 6 | 1 - | 2 8 | 2 3 | 2 3 | 2 5 | 2 5 | +-------+--------+-------+---------+--------+--------+--------+--------+ 3 | BMI r |AND(z),y| JAM i | RLA(z),y| NOP z,x| AND z,x| ROL z,x| RLA z,x| | 2 2* | 2 5* | 1 - | 2 8 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+-------+---------+--------+--------+--------+--------+ 4 | RTI s |EOR(z,x)| JAM i | SRE(z,x)| NOP z | EOR z | LSR z | SRE z | | 1 6 | 2 6 | 1 - | 2 8 | 2 3 | 2 3 | 2 5 | 2 5 | +-------+--------+-------+---------+--------+--------+--------+--------+ 5 | BVC r |EOR(z),y| JAM i | SRE(z),y| NOP z,x| EOR z,x| LSR z,x| SRE z,x| | 2 2* | 2 5* | 1 - | 2 8 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+-------+---------+--------+--------+--------+--------+ 6 | RTS s |ADC(z,x)| JAM i | RRA(z,x)| NOP z | ADC z | ROR z | RRA z | | 1 6 | 2 6 | 1 - | 2 8 | 2 3 | 2 3 | 2 5 | 2 5 | +-------+--------+-------+---------+--------+--------+--------+--------+ 7 | BVS r |ADC(z),y| JAM i | RRA(z),y| NOP z,x| ADC z,x| ROR z,x| RRA z,x| | 2 2* | 2 5* | 1 - | 2 8 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+-------+---------+--------+--------+--------+--------+ 8 | NOP # |STA(z,x)| NOP # | SAX(z,x)| STY z | STA z | STX z | SAX z | | 2 2 | 2 6 | 2 2 | 2 6 | 2 3 | 2 3 | 2 3 | 2 3 | +-------+--------+-------+---------+--------+--------+--------+--------+ 9 | BCC r |STA(z),y| JAM i | SHA a,x | STYz,x | STA z,x| STX z,y| SAX z,y| | 2 2* | 2 6 | 1 - |! 3 5 !| 2 4 | 2 4 | 2 4 | 2 4 | +-------+--------+-------+---------+--------+--------+--------+--------+ A | LDY # |LDA(z,x)| LDX # | LAX(z,x)| LDY z | LDA z | LDX z | LAX z | | 2 2 | 2 6 | 2 2 | 2 6 | 2 3 | 2 3 | 2 3 | 2 3 | +-------+--------+-------+---------+--------+--------+--------+--------+ B | BCS r |LDA(z),y| JAM i | LAX(z),y| LDY z,x| LDA z,x| LDX z,y| LAX z,y| | 2 2* | 2 5* | 1 - | 2 5* | 2 4 | 2 4 | 2 4 | 2 4 | +-------+--------+-------+---------+--------+--------+--------+--------+ C | CPY # |CMP(z,x)| NOP # | DCP(z,x)| CPY z | CMP z | DEC z | DCP z | | 2 2 | 2 6 | 2 2 | 2 8 | 2 3 | 2 3 | 2 5 | 2 5 | +-------+--------+-------+---------+--------+--------+--------+--------+ D | BNE r |CMP(z),y| JAM i | DCP(z),y| NOP z,x| CMP z,x| DEC z,x| DCP z,x| | 2 2* | 2 5* | 1 - | 2 8 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+-------+---------+--------+--------+--------+--------+ E | CPX # |SBC(z,x)| NOP # | ISB(z,x)| CPX z | SBC z | INC z | ISB z | | 2 2 | 2 6 | 2 2 | 2 8 | 2 3 | 2 3 | 2 5 | 2 5 | +-------+--------+-------+---------+--------+--------+--------+--------+ F | BEQ r |SBC(z),y| JAM i | ISB(z),y| NOP z,x| SBC z,x| INC z,x| ISB z,x| | 2 2* | 2 5* | 1 - | 2 8 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+-------+---------+--------+--------+--------+--------+ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | +-------+--------+-------+---------+--------+--------+--------+--------+ Hi Low +-------+--------+-------+-------+--------+--------+--------+--------+ | 8 | 9 | A | B | C | D | E | F | --+-------+--------+-------+-------+--------+--------+--------+--------+ 0 | PHP s | ORA # | ASL A | ANC # | NOP a | ORA a | ASL a | SLO a | | 1 3 | 2 2 | 1 2 | 2 2 | 3 4 | 3 4 | 3 6 | 3 6 | +-------+--------+-------+-------+--------+--------+--------+--------+ 1 | CLC i | ORA a,y| NOP i |SLO a,y| NOP a,x| ORA a,x| ASL a,x| SLO a,x| | 1 2 | 3 4* | 1 2 | 3 7 | 3 4* | 3 4* | 3 7 | 3 7 | +-------+--------+-------+-------+--------+--------+--------+--------+ 2 | PLP s | AND # | ROL A | ANC # | BIT a | AND a | ROL a | RLA a | | 1 4 | 2 2 | 1 2 | 2 2 | 3 4 | 3 4 | 3 6 | 3 6 | +-------+--------+-------+-------+--------+--------+--------+--------+ 3 | SEC i | AND a,y| NOP i |RLA a,y| NOP a,x| AND a,x| ROL a,x| RLA a,x| | 1 2 | 3 4* | 1 2 | 3 7 | 3 4* | 3 4* | 3 7 | 3 7 | +-------+--------+-------+-------+--------+--------+--------+--------+ 4 | PHA s | EOR # | LSR A | ASR # | JMP a | EOR a | LSR a | SRE a | | 1 3 | 2 2 | 1 2 | 2 2 | 3 3 | 3 4 | 3 6 | 3 6 | +-------+--------+-------+-------+--------+--------+--------+--------+ 5 | CLI i | EOR a,y| NOP i |SRE a,y| NOP a,x| EOR a,x| LSR a,x| SRE a,x| | 1 2 | 3 4* | 1 2 | 3 7 | 3 4* | 3 4* | 3 7 | 3 7 | +-------+--------+-------+-------+--------+--------+--------+--------+ 6 | PLA s | ADC # | ROR A | ARR # | JMP (a)| ADC a | ROR a | RRA a | | 1 4 | 2 2 | 1 2 | 2 2 | 3 5 | 3 4 | 3 6 | 3 6 | +-------+--------+-------+-------+--------+--------+--------+--------+ 7 | SEI i | ADC a,y| NOP i |RRA a,y| NOP a,x| ADC a,x| ROR a,x| RRA a,x| | 1 2 | 3 4* | 1 2 | 3 7 | 3 4* | 3 4* | 3 7 | 3 7 | +-------+--------+-------+-------+--------+--------+--------+--------+ 8 | DEY i | NOP # | TXA i | ANE # | STY a | STA a | STX a | SAX a | | 1 2 | 2 2 | 1 2 | 2 2 | 3 4 | 3 4 | 3 4 | 3 4 | +-------+--------+-------+-------+--------+--------+--------+--------+ 9 | TYA i | STA a,y| TXS i |SHS a,x| SHY a,y| STA a,x| SHX a,y| SHA a,y| | 1 2 | 3 5 | 1 2 |! 3 5 !|! 3 5 !| 3 5 |! 3 5 !|! 3 5 !| +-------+--------+-------+-------+--------+--------+--------+--------+ A | TAY i | LDA # | TAX i | LXA # | LDY a | LDA a | LDX a | LAX a | | 1 2 | 2 2 | 1 2 |! 2 2 !| 3 4 | 3 4 | 3 4 | 3 4 | +-------+--------+-------+-------+--------+--------+--------+--------+ B | CLV i | LDA a,y| TSX i |LAE a,y| LDY a,x| LDA a,x| LDX a,y| LAX a,y| | 1 2 | 3 4* | 1 2 |! 3 4*!| 3 4 | 3 4* | 3 4* | 3 4* | +-------+--------+-------+-------+--------+--------+--------+--------+ C | INY i | CMP # | DEX i | SBX # | CPY a | CMP a | DEC a | DCP a | | 1 2 | 2 2 | 1 2 | 2 2 | 3 4 | 3 4 | 3 4 | 3 6 | +-------+--------+-------+-------+--------+--------+--------+--------+ D | CLD i | CMP a,y| NOP i |DCP a,y| NOP a,x| CMP a,x| DEC a,x| DCP a,x| | 1 2 | 3 4* | 1 2 | 3 7 | 3 4* | 3 4* | 3 7 | 3 7 | +-------+--------+-------+-------+--------+--------+--------+--------+ E | INX i | SBC # | NOP i | SBC # | CPX a | SBC a | INC a | ISB a | | 1 2 | 2 2 | 1 2 | 2 2 | 3 4 | 3 4 | 3 6 | 3 6 | +-------+--------+-------+-------+--------+--------+--------+--------+ F | SED i | SBC a,y| NOP i |ISB a,y| NOP a,x| SBC a,x| INC a,x| ISB a,x| | 1 2 | 3 4* | 1 2 | 3 7 | 3 4* | 3 4* | 3 7 | 3 7 | +-------+--------+-------+-------+--------+--------+--------+--------+ | 8 | 9 | A | B | C | D | E | F | +-------+--------+-------+-------+--------+--------+--------+--------+ * = Opcode may need more cycles ! = Unstable opcode! |