0% found this document useful (0 votes)
55 views5 pages

Hex 2 Asm

This document lists the mnemonics and hexadecimal codes for 6502 assembly language instructions. It includes instructions for addressing modes like direct page, indexed, indirect, absolute, and stack operations. The mnemonics are grouped by most significant hexadecimal digit (0x, 0x1, etc) and provide details on operand addressing for each instruction.

Uploaded by

76stchstch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views5 pages

Hex 2 Asm

This document lists the mnemonics and hexadecimal codes for 6502 assembly language instructions. It includes instructions for addressing modes like direct page, indexed, indirect, absolute, and stack operations. The mnemonics are grouped by most significant hexadecimal digit (0x, 0x1, etc) and provide details on operand addressing for each instruction.

Uploaded by

76stchstch
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

ASM Mnemonics and their Hex equivalents

Made by Buu-Huu, uploaded by WhiteYoshiEgg

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

You might also like