Opcode Cheat-Sheet
Jump to navigation
Jump to search
MNE MODE nvmxdizc e OP Len Cycles Syntax --- --------- ---------- -- --- ------------ ------------- ADC imm mm....mm . 69 3-m 3-m ADC #$54 ADC dir mm....mm . 65 2 4-m+w ADC $10 ADC dir,X mm....mm . 75 2 5-m+w ADC $10,X ADC stk,S mm....mm . 63 2 5-m ADC $32,S ADC abs mm....mm . 6D 3 5-m ADC $9876 ADC abs,X mm....mm . 7D 3 6-m-x+x*p ADC $9876,X ADC abs,Y mm....mm . 79 3 6-m-x+x*p ADC $9876,Y ADC long mm....mm . 6F 4 6-m ADC $FEDBCA ADC long,X mm....mm . 7F 4 6-m ADC $FEDCBA,X ADC (dir) mm....mm . 72 2 6-m+w ADC ($10) ADC (dir),Y mm....mm . 71 2 7-m+w-x+x*p ADC ($10),Y ADC (dir,X) mm....mm . 61 2 7-m+w ADC ($10,X) ADC (stk,S),Y mm....mm . 73 2 8-m ADC ($32,S),Y ADC [dir] mm....mm . 67 2 7-m+w ADC [$10] ADC [dir],Y mm....mm . 77 2 7-m+w ADC [$10],Y AND imm m.....m. . 29 3-m 3-m AND #$54 AND dir m.....m. . 25 2 4-m+w AND $10 AND dir,X m.....m. . 35 2 5-m+w AND $10,X AND stk,S m.....m. . 23 2 5-m AND $32,S AND abs m.....m. . 2D 3 5-m AND $9876 AND abs,X m.....m. . 3D 3 6-m-x+x*p AND $9876,X AND abs,Y m.....m. . 39 3 6-m-x+x*p AND $9876,Y AND long m.....m. . 2F 4 6-m AND $FEDBCA AND long,X m.....m. . 3F 4 6-m AND $FEDCBA,X AND (dir) m.....m. . 32 2 6-m+w AND ($10) AND (dir),Y m.....m. . 31 2 7-m+w-x+x*p AND ($10),Y AND (dir,X) m.....m. . 21 2 7-m+w AND ($10,X) AND (stk,S),Y m.....m. . 33 2 8-m AND ($32,S),Y AND [dir] m.....m. . 27 2 7-m+w AND [$10] AND [dir],Y m.....m. . 37 2 7-m+w AND [$10],Y ASL acc m.....mm . 0A 1 2 ASL ASL dir m.....mm . 06 2 7-2*m+w ASL $10 ASL dir,X m.....mm . 16 2 8-2*m+w ASL $10,X ASL abs m.....mm . 0E 3 8-2*m ASL $9876 ASL abs,X m.....mm . 1E 3 9-2*m ASL $9876,X BCC rel8 ........ . 90 2 2+t+t*e*p BCC LABEL BCS rel8 ........ . B0 2 2+t+t*e*p BCS LABEL BEQ rel8 ........ . F0 2 2+t+t*e*p BEQ LABEL BIT imm ......m. . 89 3-m 3-m BIT #$54 BIT dir mm....m. . 24 2 4-m+w BIT $10 BIT dir,X mm....m. . 34 2 5-m+w BIT $10,X BIT abs mm....m. . 2C 3 5-m BIT $9876 BIT abs,X mm....m. . 3C 3 6-m-x+x*p BIT $9876,X BMI rel8 ........ . 30 2 2+t+t*e*p BMI LABEL BNE rel8 ........ . D0 2 2+t+t*e*p BNE LABEL BPL rel8 ........ . 10 2 2+t+t*e*p BPL LABEL BRA rel8 ........ . 80 2 3+e*p BRA LABEL BRK imp ....01.. . 00 1 8-e BRK BRL rel16 ........ . 82 3 4 BRL LABEL BVC rel8 ........ . 50 2 2+t+t*e*p BVC LABEL BVS rel8 ........ . 70 2 2+t+t*e*p BVS LABEL CLC imp .......0 . 18 1 2 CLC CLD imp ....0... . D8 1 2 CLD CLI imp .....0.. . 58 1 2 CLI CLV imp .0...... . B8 1 2 CLV CMP imm m.....mm . C9 3-m 3-m CMP #$54 CMP dir m.....mm . C5 2 4-m+w CMP $10 CMP dir,X m.....mm . D5 2 5-m+w CMP $10,X CMP stk,S m.....mm . C3 2 5-m CMP $32,S CMP abs m.....mm . CD 3 5-m CMP $9876 CMP abs,X m.....mm . DD 3 6-m-x+x*p CMP $9876,X CMP abs,Y m.....mm . D9 3 6-m-x+x*p CMP $9876,Y CMP long m.....mm . CF 4 6-m CMP $FEDBCA CMP long,X m.....mm . DF 4 6-m CMP $FEDCBA,X CMP (dir) m.....mm . D2 2 6-m+w CMP ($10) CMP (dir),Y m.....mm . D1 2 7-m+w-x+x*p CMP ($10),Y CMP (dir,X) m.....mm . C1 2 7-m+w CMP ($10,X) CMP (stk,S),Y m.....mm . D3 2 8-m CMP ($32,S),Y CMP [dir] m.....mm . C7 2 7-m+w CMP [$10] CMP [dir],Y m.....mm . D7 2 7-m+w CMP [$10],Y COP imm ....01.. . 02 2 8-e COP #$12 CPX imm x.....xx . E0 3-x 3-x CPX #$54 CPX dir x.....xx . E4 2 4-x+w CPX $10 CPX abs x.....xx . EC 3 5-x CPX $9876 CPY imm x.....xx . C0 3-x 3-x CPY #$54 CPY dir x.....xx . C4 2 4-x+w CPY $10 CPY abs x.....xx . CC 3 5-x CPY $9876 DEC acc m.....m. . 3A 1 2 DEC DEC dir m.....m. . C6 2 7-2*m+w DEC $10 DEC dir,X m.....m. . D6 2 8-2*m+w DEC $10,X DEC abs m.....m. . CE 3 8-2*m DEC $9876 DEC abs,X m.....m. . DE 3 9-2*m DEC $9876,X DEX imp x.....x. . CA 1 2 DEX DEY imp x.....x. . 88 1 2 DEY EOR imm m.....m. . 49 3-m 3-m EOR #$54 EOR dir m.....m. . 45 2 4-m+w EOR $10 EOR dir,X m.....m. . 55 2 5-m+w EOR $10,X EOR stk,S m.....m. . 43 2 5-m EOR $32,S EOR abs m.....m. . 4D 3 5-m EOR $9876 EOR abs,X m.....m. . 5D 3 6-m-x+x*p EOR $9876,X EOR abs,Y m.....m. . 59 3 6-m-x+x*p EOR $9876,Y EOR long m.....m. . 4F 4 6-m EOR $FEDBCA EOR long,X m.....m. . 5F 4 6-m EOR $FEDCBA,X EOR (dir) m.....m. . 52 2 6-m+w EOR ($10) EOR (dir),Y m.....m. . 51 2 7-m+w-x+x*p EOR ($10),Y EOR (dir,X) m.....m. . 41 2 7-m+w EOR ($10,X) EOR (stk,S),Y m.....m. . 53 2 8-m EOR ($32,S),Y EOR [dir] m.....m. . 47 2 7-m+w EOR [$10] EOR [dir],Y m.....m. . 57 2 7-m+w EOR [$10],Y INC acc m.....m. . 1A 1 2 INC INC dir m.....m. . E6 2 7-2*m+w INC $10 INC dir,X m.....m. . F6 2 8-2*m+w INC $10,X INC abs m.....m. . EE 3 8-2*m INC $9876 INC abs,X m.....m. . FE 3 9-2*m INC $9876,X INX imp x.....x. . E8 1 2 INX INY imp x.....x. . C8 1 2 INY JMP abs ........ . 4C 3 3 JMP $1234 JMP long ........ . 5C 4 4 JMP $FEDCBA JMP (abs) ........ . 6C 3 5 JMP ($1234) JMP (abs,X) ........ . 7C 3 6 JMP ($1234,X) JMP [abs] ........ . DC 3 6 JMP [$1234] JSL long ........ . 22 4 8 JSL $123456 JSR abs ........ . 20 3 6 JSR $1234 JSR (abs,X) ........ . FC 3 8 JSR ($1234,X) LDA imm m.....m. . A9 3-m 3-m LDA #$54 LDA dir m.....m. . A5 2 4-m+w LDA $10 LDA dir,X m.....m. . B5 2 5-m+w LDA $10,X LDA stk,S m.....m. . A3 2 5-m LDA $32,S LDA abs m.....m. . AD 3 5-m LDA $9876 LDA abs,X m.....m. . BD 3 6-m-x+x*p LDA $9876,X LDA abs,Y m.....m. . B9 3 6-m-x+x*p LDA $9876,Y LDA long m.....m. . AF 4 6-m LDA $FEDBCA LDA long,X m.....m. . BF 4 6-m LDA $FEDCBA,X LDA (dir) m.....m. . B2 2 6-m+w LDA ($10) LDA (dir),Y m.....m. . B1 2 7-m+w-x+x*p LDA ($10),Y LDA (dir,X) m.....m. . A1 2 7-m+w LDA ($10,X) LDA (stk,S),Y m.....m. . B3 2 8-m LDA ($32,S),Y LDA [dir] m.....m. . A7 2 7-m+w LDA [$10] LDA [dir],Y m.....m. . B7 2 7-m+w LDA [$10],Y LDX imm x.....x. . A2 3-x 3-x LDX #$54 LDX dir x.....x. . A6 2 4-x+w LDX $10 LDX dir,Y x.....x. . B6 2 5-x+w LDX $10,Y LDX abs x.....x. . AE 3 5-x LDX $9876 LDX abs,Y x.....x. . BE 3 6-2*x+x*p LDX $9876,Y LDY imm x.....x. . A0 3-x 3-x LDY #$54 LDY dir x.....x. . A4 2 4-x+w LDY $10 LDY dir,X x.....x. . B4 2 5-x+w LDY $10,X LDY abs x.....x. . AC 3 5-x LDY $9876 LDY abs,X x.....x. . BC 3 6-2*x+x*p LDY $9876,X LSR acc 0.....m* . 4A 1 2 LSR LSR dir 0.....m* . 46 2 7-2*m+w LSR $10 LSR dir,X 0.....m* . 56 2 8-2*m+w LSR $10,X LSR abs 0.....m* . 4E 3 8-2*m LSR $9876 LSR abs,X 0.....m* . 5E 3 9-2*m LSR $9876,X MVN src,dest ........ . 54 3 7 MVN #$12,#$34 MVP src,dest ........ . 44 3 7 MVP #$12,#$34 NOP imp ........ . EA 1 2 NOP ORA imm m.....m. . 09 3-m 3-m ORA #$54 ORA dir m.....m. . 05 2 4-m+w ORA $10 ORA dir,X m.....m. . 15 2 5-m+w ORA $10,X ORA stk,S m.....m. . 03 2 5-m ORA $32,S ORA abs m.....m. . 0D 3 5-m ORA $9876 ORA abs,X m.....m. . 1D 3 6-m-x+x*p ORA $9876,X ORA abs,Y m.....m. . 19 3 6-m-x+x*p ORA $9876,Y ORA long m.....m. . 0F 4 6-m ORA $FEDBCA ORA long,X m.....m. . 1F 4 6-m ORA $FEDCBA,X ORA (dir) m.....m. . 12 2 6-m+w ORA ($10) ORA (dir),Y m.....m. . 11 2 7-m+w-x+x*p ORA ($10),Y ORA (dir,X) m.....m. . 01 2 7-m+w ORA ($10,X) ORA (stk,S),Y m.....m. . 13 2 8-m ORA ($32,S),Y ORA [dir] m.....m. . 07 2 7-m+w ORA [$10] ORA [dir],Y m.....m. . 17 2 7-m+w ORA [$10],Y PEA imm ........ . F4 3 5 PEA #$1234 PEI dir ........ . D4 2 6+w PEI $12 PER imm ........ . 62 3 6 PER LABEL PHA imp ........ . 48 1 4-m PHA PHB imp ........ . 8B 1 3 PHB PHD imp ........ . 0B 1 4 PHD PHK imp ........ . 4B 1 3 PHK PHP imp ........ . 08 1 3 PHP PHX imp ........ . DA 1 4-x PHX PHY imp ........ . 5A 1 4-x PHY PLA imp m.....m. . 68 1 5-m PLA PLB imp *.....*. . AB 1 4 PLB PLD imp *.....*. . 2B 1 5 PLD PLP imp ******** . 28 1 4 PLP PLX imp x.....x. . FA 1 5-x PLX PLY imp x.....x. . 7A 1 5-x PLY REP imm ******** . C2 2 3 REP #$12 ROL acc m.....mm . 2A 1 2 ROL ROL dir m.....mm . 26 2 7-2*m+w ROL $10 ROL dir,X m.....mm . 36 2 8-2*m+w ROL $10,X ROL abs m.....mm . 2E 3 8-2*m ROL $9876 ROL abs,X m.....mm . 3E 3 9-2*m ROL $9876,X ROR acc m.....m* . 6A 1 2 ROR ROR dir m.....m* . 66 2 7-2*m+w ROR $10 ROR dir,X m.....m* . 76 2 8-2*m+w ROR $10,X ROR abs m.....m* . 6E 3 8-2*m ROR $9876 ROR abs,X m.....m* . 7E 3 9-2*m ROR $9876,X RTI imp ******** . 40 1 7-e RTI RTL imp ........ . 6B 1 6 RTL RTS imp ........ . 60 1 6 RTS SBC imm mm....mm . E9 3-m 3-m SBC #$54 SBC dir mm....mm . E5 2 4-m+w SBC $10 SBC dir,X mm....mm . F5 2 5-m+w SBC $10,X SBC stk,S mm....mm . E3 2 5-m SBC $32,S SBC abs mm....mm . ED 3 5-m SBC $9876 SBC abs,X mm....mm . FD 3 6-m-x+x*p SBC $9876,X SBC abs,Y mm....mm . F9 3 6-m-x+x*p SBC $9876,Y SBC long mm....mm . EF 4 6-m SBC $FEDBCA SBC long,X mm....mm . FF 4 6-m SBC $FEDCBA,X SBC (dir) mm....mm . F2 2 6-m+w SBC ($10) SBC (dir),Y mm....mm . F1 2 7-m+w-x+x*p SBC ($10),Y SBC (dir,X) mm....mm . E1 2 7-m+w SBC ($10,X) SBC (stk,S),Y mm....mm . F3 2 8-m SBC ($32,S),Y SBC [dir] mm....mm . E7 2 7-m+w SBC [$10] SBC [dir],Y mm....mm . F7 2 7-m+w SBC [$10],Y SEC imp .......1 . 38 1 2 SEC SED imp ....1... . F8 1 2 SED SEI imp .....1.. . 78 1 2 SEI SEP imm ******** . E2 2 3 SEP #$12 STA dir ........ . 85 2 4-m+w STA $10 STA dir,X ........ . 95 2 5-m+w STA $10,X STA stk,S ........ . 83 2 5-m STA $32,S STA abs ........ . 8D 3 5-m STA $9876 STA abs,X ........ . 9D 3 6-m STA $9876,X STA abs,Y ........ . 99 3 6-m STA $9876,Y STA long ........ . 8F 4 6-m STA $FEDBCA STA long,X ........ . 9F 4 6-m STA $FEDCBA,X STA (dir) ........ . 92 2 6-m+w STA ($10) STA (dir),Y ........ . 91 2 7-m+w STA ($10),Y STA (dir,X) ........ . 81 2 7-m+w STA ($10,X) STA (stk,S),Y ........ . 93 2 8-m STA ($32,S),Y STA [dir] ........ . 87 2 7-m+w STA [$10] STA [dir],Y ........ . 97 2 7-m+w STA [$10],Y STP imp ........ . DB 1 3 STP STX dir ........ . 86 2 4-x+w STX $10 STX dir,Y ........ . 96 2 5-x+w STX $10,Y STX abs ........ . 8E 3 5-x STX $9876 STY dir ........ . 84 2 4-x+w STY $10 STY dir,X ........ . 94 2 5-x+w STY $10,X STY abs ........ . 8C 3 5-x STY $9876 STZ dir ........ . 64 2 4-m+w STZ $10 STZ dir,X ........ . 74 2 5-m+w STZ $10,X STZ abs ........ . 9C 3 5-m STZ $9876 STZ abs,X ........ . 9E 3 6-m STZ $9876,X TAX imp x.....x. . AA 1 2 TAX TAY imp x.....x. . A8 1 2 TAY TCD imp *.....*. . 5B 1 2 TCD TCS imp ........ . 1B 1 2 TCS TDC imp *.....*. . 7B 1 2 TDC TRB dir ......m. . 14 2 7-2*m+w TRB $10 TRB abs ......m. . 1C 3 8-2*m TRB $9876 TSB dir ......m. . 04 2 7-2*m+w TSB $10 TSB abs ......m. . 0C 3 8-2*m TSB $9876 TSC imp *.....*. . 3B 1 2 TSC TSX imp x.....x. . BA 1 2 TSX TXA imp m.....m. . 8A 1 2 TXA TXS imp ........ . 9A 1 2 TXS TXY imp x.....x. . 9B 1 2 TXY TYA imp m.....m. . 98 1 2 TYA TYX imp x.....x. . BB 1 2 TYX WAI imp ........ . CB 1 3 WAI WDM imm ........ . 42 2 2 WDM XBA imp *.....*. . EB 1 3 XBA XCE imp .......* * FB 1 2 XCE