blob: ba3d99dfa872175cad04af941d2535935bc2799f [file] [log] [blame]
swissChili6c61a792020-07-28 16:29:20 -07001#pragma once
2
3// AUTO GENERATED FILE, DO NOT EDIT BY HAND
4#define INSTRUCTIONS \
5 INST(ADC, AM_IMM, 0x69 ) \
6 INST(ADC, AM_ZP, 0x65 ) \
7 INST(ADC, AM_ZPX, 0x75 ) \
8 INST(ADC, AM_ABS, 0x6d ) \
9 INST(ADC, AM_AX, 0x7d ) \
10 INST(ADC, AM_AY, 0x79 ) \
11 INST(ADC, AM_ZIX, 0x61 ) \
12 INST(ADC, AM_ZIY, 0x71 ) \
13 INST(AND, AM_IMM, 0x29 ) \
14 INST(AND, AM_ZP, 0x25 ) \
15 INST(AND, AM_ZPX, 0x35 ) \
16 INST(AND, AM_ABS, 0x2d ) \
17 INST(AND, AM_AX, 0x3d ) \
18 INST(AND, AM_AY, 0x39 ) \
19 INST(AND, AM_ZIX, 0x21 ) \
20 INST(AND, AM_ZIY, 0x31 ) \
21 INST(ASL, AM_ACC, 0x0a ) \
22 INST(ASL, AM_ZP, 0x06 ) \
23 INST(ASL, AM_ZPX, 0x16 ) \
24 INST(ASL, AM_ABS, 0x0e ) \
25 INST(ASL, AM_AX, 0x1e ) \
26 INST(BCC, AM_REL, 0x90 ) \
27 INST(BCS, AM_REL, 0xB0 ) \
28 INST(BEQ, AM_REL, 0xF0 ) \
29 INST(BMI, AM_REL, 0x30 ) \
30 INST(BNE, AM_REL, 0xD0 ) \
31 INST(BPL, AM_REL, 0x10 ) \
32 INST(BVC, AM_REL, 0x50 ) \
33 INST(BVS, AM_REL, 0x70 ) \
34 INST(BIT, AM_ZP, 0x24 ) \
35 INST(BIT, AM_ABS, 0x2c ) \
36 INST(BIT, AM_IMM, 0x89 ) \
37 INST(BIT, AM_ZPX, 0x34 ) \
38 INST(BIT, AM_AX, 0x3c ) \
39 INST(BRK, AM_IMP, 0x00 ) \
40 INST(CLC, AM_IMP, 0x18 ) \
41 INST(CLD, AM_IMP, 0xd8 ) \
42 INST(CLI, AM_IMP, 0x58 ) \
43 INST(CLV, AM_IMP, 0xb8 ) \
44 INST(NOP, AM_IMP, 0xea ) \
45 INST(PHA, AM_IMP, 0x48 ) \
46 INST(PLA, AM_IMP, 0x68 ) \
47 INST(PHP, AM_IMP, 0x08 ) \
48 INST(PLP, AM_IMP, 0x28 ) \
49 INST(RTI, AM_IMP, 0x40 ) \
50 INST(RTS, AM_IMP, 0x60 ) \
51 INST(SEC, AM_IMP, 0x38 ) \
52 INST(SED, AM_IMP, 0xf8 ) \
53 INST(SEI, AM_IMP, 0x78 ) \
54 INST(TAX, AM_IMP, 0xaa ) \
55 INST(TXA, AM_IMP, 0x8a ) \
56 INST(TAY, AM_IMP, 0xa8 ) \
57 INST(TYA, AM_IMP, 0x98 ) \
58 INST(TSX, AM_IMP, 0xba ) \
59 INST(TXS, AM_IMP, 0x9a ) \
60 INST(CMP, AM_IMM, 0xc9 ) \
61 INST(CMP, AM_ZP, 0xc5 ) \
62 INST(CMP, AM_ZPX, 0xd5 ) \
63 INST(CMP, AM_ABS, 0xcd ) \
64 INST(CMP, AM_AX, 0xdd ) \
65 INST(CMP, AM_AY, 0xd9 ) \
66 INST(CMP, AM_ZIX, 0xc1 ) \
67 INST(CMP, AM_ZIY, 0xd1 ) \
68 INST(CPX, AM_IMM, 0xe0 ) \
69 INST(CPX, AM_ZP, 0xe4 ) \
70 INST(CPX, AM_ABS, 0xec ) \
71 INST(CPY, AM_IMM, 0xc0 ) \
72 INST(CPY, AM_ZP, 0xc4 ) \
73 INST(CPY, AM_ABS, 0xcc ) \
74 INST(DEC, AM_ZP, 0xc6 ) \
75 INST(DEC, AM_ZPX, 0xd6 ) \
76 INST(DEC, AM_ABS, 0xce ) \
77 INST(DEC, AM_AX, 0xde ) \
78 INST(DEC, AM_ACC, 0x3a ) \
79 INST(DEX, AM_IMP, 0xca ) \
80 INST(DEY, AM_IMP, 0x88 ) \
81 INST(INX, AM_IMP, 0xe8 ) \
82 INST(INY, AM_IMP, 0xc8 ) \
83 INST(EOR, AM_IMM, 0x49 ) \
84 INST(EOR, AM_ZP, 0x45 ) \
85 INST(EOR, AM_ZPX, 0x55 ) \
86 INST(EOR, AM_ABS, 0x4d ) \
87 INST(EOR, AM_AX, 0x5d ) \
88 INST(EOR, AM_AY, 0x59 ) \
89 INST(EOR, AM_ZIX, 0x41 ) \
90 INST(EOR, AM_ZIY, 0x51 ) \
91 INST(INC, AM_ZP, 0xe6 ) \
92 INST(INC, AM_ZPX, 0xf6 ) \
93 INST(INC, AM_ABS, 0xee ) \
94 INST(INC, AM_AX, 0xfe ) \
95 INST(INC, AM_ACC, 0x1a ) \
96 INST(JMP, AM_ABS, 0x4c ) \
97 INST(JMP, AM_IND, 0x6c ) \
98 INST(JMP, AM_AX, 0x7c ) \
99 INST(JSR, AM_ABS, 0x20 ) \
100 INST(LDA, AM_IMM, 0xa9 ) \
101 INST(LDA, AM_ZP, 0xa5 ) \
102 INST(LDA, AM_ZPX, 0xb5 ) \
103 INST(LDA, AM_ABS, 0xad ) \
104 INST(LDA, AM_AX, 0xbd ) \
105 INST(LDA, AM_AY, 0xb9 ) \
106 INST(LDA, AM_ZIX, 0xa1 ) \
107 INST(LDA, AM_ZIY, 0xb1 ) \
108 INST(LDX, AM_IMM, 0xa2 ) \
109 INST(LDX, AM_ZP, 0xa6 ) \
110 INST(LDX, AM_ZPY, 0xb6 ) \
111 INST(LDX, AM_ABS, 0xae ) \
112 INST(LDX, AM_AY, 0xbe ) \
113 INST(LDY, AM_IMM, 0xa0 ) \
114 INST(LDY, AM_ZP, 0xa4 ) \
115 INST(LDY, AM_ZPX, 0xb4 ) \
116 INST(LDY, AM_ABS, 0xac ) \
117 INST(LDY, AM_AX, 0xbc ) \
118 INST(LSR, AM_ACC, 0x4a ) \
119 INST(LSR, AM_ZP, 0x46 ) \
120 INST(LSR, AM_ZPX, 0x56 ) \
121 INST(LSR, AM_ABS, 0x4e ) \
122 INST(LSR, AM_AX, 0x5e ) \
123 INST(ORA, AM_IMM, 0x09 ) \
124 INST(ORA, AM_ZP, 0x05 ) \
125 INST(ORA, AM_ZPX, 0x15 ) \
126 INST(ORA, AM_ABS, 0x0d ) \
127 INST(ORA, AM_AX, 0x1d ) \
128 INST(ORA, AM_AY, 0x19 ) \
129 INST(ORA, AM_ZIX, 0x01 ) \
130 INST(ORA, AM_ZIY, 0x11 ) \
131 INST(ROL, AM_ACC, 0x2a ) \
132 INST(ROL, AM_ZP, 0x26 ) \
133 INST(ROL, AM_ZPX, 0x36 ) \
134 INST(ROL, AM_ABS, 0x2e ) \
135 INST(ROL, AM_AX, 0x3e ) \
136 INST(ROR, AM_ACC, 0x6a ) \
137 INST(ROR, AM_ZP, 0x66 ) \
138 INST(ROR, AM_ZPX, 0x76 ) \
139 INST(ROR, AM_ABS, 0x7e ) \
140 INST(ROR, AM_AX, 0x6e ) \
141 INST(SBC, AM_IMM, 0xe9 ) \
142 INST(SBC, AM_ZP, 0xe5 ) \
143 INST(SBC, AM_ZPX, 0xf5 ) \
144 INST(SBC, AM_ABS, 0xed ) \
145 INST(SBC, AM_AX, 0xfd ) \
146 INST(SBC, AM_AY, 0xf9 ) \
147 INST(SBC, AM_ZIX, 0xe1 ) \
148 INST(SBC, AM_ZIY, 0xf1 ) \
149 INST(STA, AM_ZP, 0x85 ) \
150 INST(STA, AM_ZPX, 0x95 ) \
151 INST(STA, AM_ABS, 0x8d ) \
152 INST(STA, AM_AX, 0x9d ) \
153 INST(STA, AM_AY, 0x99 ) \
154 INST(STA, AM_ZIX, 0x81 ) \
155 INST(STA, AM_ZIY, 0x91 ) \
156 INST(STX, AM_ZP, 0x86 ) \
157 INST(STX, AM_ZPY, 0x96 ) \
158 INST(STX, AM_ABS, 0x8e ) \
159 INST(STY, AM_ZP, 0x84 ) \
160 INST(STY, AM_ZPX, 0x94 ) \
161 INST(STY, AM_ABS, 0x8c ) \