65816 instruction chart: Hi Low +-------+--------+--------+----------+--------+--------+--------+---------+ | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | --+-------+--------+--------+----------+--------+--------+--------+---------+ 0 | BRK s |ORA(d,x)| COP s | ORA d,s | TSB d | ORA d | ASL d | ORA [d] | | 2 8 | 2 6 | 2 8 | 2 4 | 2 5 | 2 3 | 2 5 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 1 | BPL r |ORA(d),y| ORA(d) |ORA(d,s),y| TRB d | ORA d,x| ASL d,x|ORA [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 2 5 | 2 4 | 2 6 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 2 | JSR a |AND(d,x)| JSL al | AND d,s | BIT d | AND d | ROL d | AND [d] | | 3 6 | 2 6 | 4 8 | 2 4 | 2 3 | 2 3 | 2 5 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 3 | BMI r |AND(d),y| AND (d)|AND(d,s),y| BIT d,x| AND d,x| ROL d,x|AND [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 4 | RTI s |EOR(d,x)| reserve| EOR d,s | MVP xya| EOR d | LSR d | EOR [d] | | 1 7 | 2 6 | 2 2 | 2 4 | 3 7 | 2 3 | 2 5 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 5 | BVC r |EOR(d),y| EOR (d)|EOR(d,s),y| MVN xya| EOR d,x| LSR d,x|EOR [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 3 7 | 2 4 | 2 6 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 6 | RTS s |ADC(d,x)| PER s | ADC d,s | STZ d | ADC d | ROR d | ADC [d] | | 1 6 | 2 6 | 3 6 | 2 4 | 2 3 | 2 3 | 2 5 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 7 | BVS r |ADC(d),y| ADC (d)|ADC(d,s),y| STZ d,x| ADC d,x| ROR d,x|ADC [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 2 4 | 2 4 | 2 6 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 8 | BRA r |STA(d,x)| BRL rl | STA d,s | STY d | STA d | STX d | STA [d] | | 2 2 | 2 6 | 3 3 | 2 4 | 2 3 | 2 3 | 2 3 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ 9 | BCC r |STA(d),y| STA (d)|STA(d,s),y| STYd,x | STA d,x| STX d,y|STA [d],y| | 2 2 | 2 6 | 2 5 | 2 7 | 2 4 | 2 4 | 2 4 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ A | LDY # |LDA(d,x)| LDX # | LDA d,s | LDY d | LDA d | LDX d | LDA [d] | | 2 2 | 2 6 | 2 2 | 2 4 | 2 3 | 2 3 | 2 3 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ B | BCS r |LDA(d),y| LDA (d)|LDA(d,s),y| LDY d,x| LDA d,x| LDX d,y|LDA [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 2 4 | 2 4 | 2 4 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ C | CPY # |CMP(d,x)| REP # | CMP d,s | CPY d | CMP d | DEC d | CMP [d] | | 2 2 | 2 6 | 2 3 | 2 4 | 2 3 | 2 3 | 2 5 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ D | BNE r |CMP(d),y| CMP (d)|CMP(d,s),y| PEI s | CMP d,x| DEC d,x|CMP [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 2 6 | 2 4 | 2 6 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ E | CPX # |SBC(d,x)| SEP # | SBC d,s | CPX d | SBC d | INC d | SBC [d] | | 2 2 | 2 6 | 2 3 | 2 4 | 2 3 | 2 3 | 2 5 | 2 6 | +-------+--------+--------+----------+--------+--------+--------+---------+ F | BEQ r |SBC(d),y| SBC (d)|SBC(d,s),y| PEA s | SBC d,x| INC d,x|SBC [d],y| | 2 2 | 2 5 | 2 5 | 2 7 | 3 5 | 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 | PHD s | TSB a | ORA a | ASL a | ORA al | | 1 3 | 2 2 | 1 2 | 1 4 | 3 6 | 3 4 | 3 6 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 1 | CLC i | ORA a,y| INC A | TCS i | TRB a | ORA a,x| ASL a,x| ORA al,x| | 1 2 | 3 4 | 1 2 | 1 2 | 3 6 | 3 4 | 3 7 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 2 | PLP s | AND # | ROL A | PLD s | BIT a | AND a | ROL a | AND al | | 1 4 | 2 2 | 1 2 | 1 5 | 3 4 | 3 4 | 3 6 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 3 | SEC i | AND a,y| DEC A | TSC i | BIT a,x| AND a,x| ROL a,x| AND al,x| | 1 2 | 3 4 | 1 2 | 1 2 | 3 4 | 3 4 | 3 7 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 4 | PHA s | EOR # | LSR A | PHK s | JMP a | EOR a | LSR a | EOR al | | 1 3 | 2 2 | 1 2 | 1 3 | 3 3 | 3 4 | 3 6 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 5 | CLI i | EOR a,y| PHY s | TCD i | JMP al | EOR a,x| LSR a,x| EOR al,x| | 1 2 | 3 4 | 1 3 | 1 2 | 4 4 | 3 4 | 3 7 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 6 | PLA s | ADC # | ROR A | RTL s | JMP (a)| ADC a | ROR a | ADC al | | 1 4 | 2 2 | 1 2 | 1 6 | 3 5 | 3 4 | 3 6 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 7 | SEI i | ADC a,y| PLY s | TDC i |JMP(a,x)| ADC a,x| ROR a,x| ADC al,x| | 1 2 | 3 4 | 1 4 | 1 2 | 3 6 | 3 4 | 3 7 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 8 | DEY i | BIT # | TXA i | PHB s | STY a | STA a | STX a | STA al | | 1 2 | 2 2 | 1 2 | 1 3 | 3 4 | 3 4 | 3 4 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ 9 | TYA i | STA a,y| TXS i | TXY i | STZ a | STA a,x| STZ a,x| STA al,x| | 1 2 | 3 5 | 1 2 | 1 2 | 3 4 | 3 5 | 3 5 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ A | TAY i | LDA # | TAX i | PLB s | LDY a | LDA a | LDX a | LDA al | | 1 2 | 2 2 | 1 2 | 1 4 | 3 4 | 3 4 | 3 4 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ B | CLV i | LDA a,y| TSX i | TYX i | LDY a,x| LDA a,x| LDX a,y| LDA al,x| | 1 2 | 3 4 | 1 2 | 1 2 | 3 4 | 3 4 | 3 4 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ C | INY i | CMP # | DEX i | WAI i | CPY a | CMP a | DEC a | CMP al | | 1 2 | 2 2 | 1 2 | 1 3 | 3 4 | 3 4 | 3 4 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ D | CLD i | CMP a,y| PHX s | STP i | JML (a)| CMP a,x| DEC a,x| CMP al,x| | 1 2 | 3 4 | 1 3 | 1 3 | 3 6 | 3 4 | 3 7 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ E | INX i | SBC # | NOP i | XBA i | CPX a | SBC a | INC a | SBC al | | 1 2 | 2 2 | 1 2 | 1 3 | 3 4 | 3 4 | 3 6 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ F | SED i | SBC a,y| PLX s | XCE i |JSR(a,x)| SBC a,x| INC a,x| SBC al,x| | 1 2 | 3 4 | 1 4 | 1 2 | 3 6 | 3 4 | 3 7 | 4 5 | +-------+--------+-------+-------+--------+--------+--------+---------+ | 8 | 9 | A | B | C | D | E | F | +-------+--------+-------+-------+--------+--------+--------+---------+ |