1 | /* A Bison parser, made by GNU Bison 2.3. */
|
---|
2 |
|
---|
3 | /* Skeleton interface for Bison's Yacc-like parsers in C
|
---|
4 |
|
---|
5 | Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
|
---|
6 | Free Software Foundation, Inc.
|
---|
7 |
|
---|
8 | This program is free software; you can redistribute it and/or modify
|
---|
9 | it under the terms of the GNU General Public License as published by
|
---|
10 | the Free Software Foundation; either version 2, or (at your option)
|
---|
11 | any later version.
|
---|
12 |
|
---|
13 | This program is distributed in the hope that it will be useful,
|
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
16 | GNU General Public License for more details.
|
---|
17 |
|
---|
18 | You should have received a copy of the GNU General Public License
|
---|
19 | along with this program; if not, write to the Free Software
|
---|
20 | Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
---|
21 | Boston, MA 02110-1301, USA. */
|
---|
22 |
|
---|
23 | /* As a special exception, you may create a larger work that contains
|
---|
24 | part or all of the Bison parser skeleton and distribute that work
|
---|
25 | under terms of your choice, so long as that work isn't itself a
|
---|
26 | parser generator using the skeleton or a modified version thereof
|
---|
27 | as a parser skeleton. Alternatively, if you modify or redistribute
|
---|
28 | the parser skeleton itself, you may (at your option) remove this
|
---|
29 | special exception, which will cause the skeleton and the resulting
|
---|
30 | Bison output files to be licensed under the GNU General Public
|
---|
31 | License without this special exception.
|
---|
32 |
|
---|
33 | This special exception was added by the Free Software Foundation in
|
---|
34 | version 2.2 of Bison. */
|
---|
35 |
|
---|
36 | /* Tokens. */
|
---|
37 | #ifndef YYTOKENTYPE
|
---|
38 | # define YYTOKENTYPE
|
---|
39 | /* Put the tokens into the symbol table, so that GDB and other debuggers
|
---|
40 | know about them. */
|
---|
41 | enum yytokentype {
|
---|
42 | REG = 258,
|
---|
43 | FLAG = 259,
|
---|
44 | CREG = 260,
|
---|
45 | ACC = 261,
|
---|
46 | EXPR = 262,
|
---|
47 | UNKNOWN_OPCODE = 263,
|
---|
48 | IS_OPCODE = 264,
|
---|
49 | DOT_S = 265,
|
---|
50 | DOT_B = 266,
|
---|
51 | DOT_W = 267,
|
---|
52 | DOT_L = 268,
|
---|
53 | DOT_A = 269,
|
---|
54 | DOT_UB = 270,
|
---|
55 | DOT_UW = 271,
|
---|
56 | ABS = 272,
|
---|
57 | ADC = 273,
|
---|
58 | ADD = 274,
|
---|
59 | AND_ = 275,
|
---|
60 | BCLR = 276,
|
---|
61 | BCND = 277,
|
---|
62 | BMCND = 278,
|
---|
63 | BNOT = 279,
|
---|
64 | BRA = 280,
|
---|
65 | BRK = 281,
|
---|
66 | BSET = 282,
|
---|
67 | BSR = 283,
|
---|
68 | BTST = 284,
|
---|
69 | CLRPSW = 285,
|
---|
70 | CMP = 286,
|
---|
71 | DBT = 287,
|
---|
72 | DIV = 288,
|
---|
73 | DIVU = 289,
|
---|
74 | EDIV = 290,
|
---|
75 | EDIVU = 291,
|
---|
76 | EMACA = 292,
|
---|
77 | EMSBA = 293,
|
---|
78 | EMUL = 294,
|
---|
79 | EMULA = 295,
|
---|
80 | EMULU = 296,
|
---|
81 | FADD = 297,
|
---|
82 | FCMP = 298,
|
---|
83 | FDIV = 299,
|
---|
84 | FMUL = 300,
|
---|
85 | FREIT = 301,
|
---|
86 | FSUB = 302,
|
---|
87 | FSQRT = 303,
|
---|
88 | FTOI = 304,
|
---|
89 | FTOU = 305,
|
---|
90 | INT = 306,
|
---|
91 | ITOF = 307,
|
---|
92 | JMP = 308,
|
---|
93 | JSR = 309,
|
---|
94 | MACHI = 310,
|
---|
95 | MACLH = 311,
|
---|
96 | MACLO = 312,
|
---|
97 | MAX = 313,
|
---|
98 | MIN = 314,
|
---|
99 | MOV = 315,
|
---|
100 | MOVCO = 316,
|
---|
101 | MOVLI = 317,
|
---|
102 | MOVU = 318,
|
---|
103 | MSBHI = 319,
|
---|
104 | MSBLH = 320,
|
---|
105 | MSBLO = 321,
|
---|
106 | MUL = 322,
|
---|
107 | MULHI = 323,
|
---|
108 | MULLH = 324,
|
---|
109 | MULLO = 325,
|
---|
110 | MULU = 326,
|
---|
111 | MVFACHI = 327,
|
---|
112 | MVFACGU = 328,
|
---|
113 | MVFACMI = 329,
|
---|
114 | MVFACLO = 330,
|
---|
115 | MVFC = 331,
|
---|
116 | MVTACGU = 332,
|
---|
117 | MVTACHI = 333,
|
---|
118 | MVTACLO = 334,
|
---|
119 | MVTC = 335,
|
---|
120 | MVTIPL = 336,
|
---|
121 | NEG = 337,
|
---|
122 | NOP = 338,
|
---|
123 | NOT = 339,
|
---|
124 | OR = 340,
|
---|
125 | POP = 341,
|
---|
126 | POPC = 342,
|
---|
127 | POPM = 343,
|
---|
128 | PUSH = 344,
|
---|
129 | PUSHA = 345,
|
---|
130 | PUSHC = 346,
|
---|
131 | PUSHM = 347,
|
---|
132 | RACL = 348,
|
---|
133 | RACW = 349,
|
---|
134 | RDACL = 350,
|
---|
135 | RDACW = 351,
|
---|
136 | REIT = 352,
|
---|
137 | REVL = 353,
|
---|
138 | REVW = 354,
|
---|
139 | RMPA = 355,
|
---|
140 | ROLC = 356,
|
---|
141 | RORC = 357,
|
---|
142 | ROTL = 358,
|
---|
143 | ROTR = 359,
|
---|
144 | ROUND = 360,
|
---|
145 | RTE = 361,
|
---|
146 | RTFI = 362,
|
---|
147 | RTS = 363,
|
---|
148 | RTSD = 364,
|
---|
149 | SAT = 365,
|
---|
150 | SATR = 366,
|
---|
151 | SBB = 367,
|
---|
152 | SCCND = 368,
|
---|
153 | SCMPU = 369,
|
---|
154 | SETPSW = 370,
|
---|
155 | SHAR = 371,
|
---|
156 | SHLL = 372,
|
---|
157 | SHLR = 373,
|
---|
158 | SMOVB = 374,
|
---|
159 | SMOVF = 375,
|
---|
160 | SMOVU = 376,
|
---|
161 | SSTR = 377,
|
---|
162 | STNZ = 378,
|
---|
163 | STOP = 379,
|
---|
164 | STZ = 380,
|
---|
165 | SUB = 381,
|
---|
166 | SUNTIL = 382,
|
---|
167 | SWHILE = 383,
|
---|
168 | TST = 384,
|
---|
169 | UTOF = 385,
|
---|
170 | WAIT = 386,
|
---|
171 | XCHG = 387,
|
---|
172 | XOR = 388
|
---|
173 | };
|
---|
174 | #endif
|
---|
175 | /* Tokens. */
|
---|
176 | #define REG 258
|
---|
177 | #define FLAG 259
|
---|
178 | #define CREG 260
|
---|
179 | #define ACC 261
|
---|
180 | #define EXPR 262
|
---|
181 | #define UNKNOWN_OPCODE 263
|
---|
182 | #define IS_OPCODE 264
|
---|
183 | #define DOT_S 265
|
---|
184 | #define DOT_B 266
|
---|
185 | #define DOT_W 267
|
---|
186 | #define DOT_L 268
|
---|
187 | #define DOT_A 269
|
---|
188 | #define DOT_UB 270
|
---|
189 | #define DOT_UW 271
|
---|
190 | #define ABS 272
|
---|
191 | #define ADC 273
|
---|
192 | #define ADD 274
|
---|
193 | #define AND_ 275
|
---|
194 | #define BCLR 276
|
---|
195 | #define BCND 277
|
---|
196 | #define BMCND 278
|
---|
197 | #define BNOT 279
|
---|
198 | #define BRA 280
|
---|
199 | #define BRK 281
|
---|
200 | #define BSET 282
|
---|
201 | #define BSR 283
|
---|
202 | #define BTST 284
|
---|
203 | #define CLRPSW 285
|
---|
204 | #define CMP 286
|
---|
205 | #define DBT 287
|
---|
206 | #define DIV 288
|
---|
207 | #define DIVU 289
|
---|
208 | #define EDIV 290
|
---|
209 | #define EDIVU 291
|
---|
210 | #define EMACA 292
|
---|
211 | #define EMSBA 293
|
---|
212 | #define EMUL 294
|
---|
213 | #define EMULA 295
|
---|
214 | #define EMULU 296
|
---|
215 | #define FADD 297
|
---|
216 | #define FCMP 298
|
---|
217 | #define FDIV 299
|
---|
218 | #define FMUL 300
|
---|
219 | #define FREIT 301
|
---|
220 | #define FSUB 302
|
---|
221 | #define FSQRT 303
|
---|
222 | #define FTOI 304
|
---|
223 | #define FTOU 305
|
---|
224 | #define INT 306
|
---|
225 | #define ITOF 307
|
---|
226 | #define JMP 308
|
---|
227 | #define JSR 309
|
---|
228 | #define MACHI 310
|
---|
229 | #define MACLH 311
|
---|
230 | #define MACLO 312
|
---|
231 | #define MAX 313
|
---|
232 | #define MIN 314
|
---|
233 | #define MOV 315
|
---|
234 | #define MOVCO 316
|
---|
235 | #define MOVLI 317
|
---|
236 | #define MOVU 318
|
---|
237 | #define MSBHI 319
|
---|
238 | #define MSBLH 320
|
---|
239 | #define MSBLO 321
|
---|
240 | #define MUL 322
|
---|
241 | #define MULHI 323
|
---|
242 | #define MULLH 324
|
---|
243 | #define MULLO 325
|
---|
244 | #define MULU 326
|
---|
245 | #define MVFACHI 327
|
---|
246 | #define MVFACGU 328
|
---|
247 | #define MVFACMI 329
|
---|
248 | #define MVFACLO 330
|
---|
249 | #define MVFC 331
|
---|
250 | #define MVTACGU 332
|
---|
251 | #define MVTACHI 333
|
---|
252 | #define MVTACLO 334
|
---|
253 | #define MVTC 335
|
---|
254 | #define MVTIPL 336
|
---|
255 | #define NEG 337
|
---|
256 | #define NOP 338
|
---|
257 | #define NOT 339
|
---|
258 | #define OR 340
|
---|
259 | #define POP 341
|
---|
260 | #define POPC 342
|
---|
261 | #define POPM 343
|
---|
262 | #define PUSH 344
|
---|
263 | #define PUSHA 345
|
---|
264 | #define PUSHC 346
|
---|
265 | #define PUSHM 347
|
---|
266 | #define RACL 348
|
---|
267 | #define RACW 349
|
---|
268 | #define RDACL 350
|
---|
269 | #define RDACW 351
|
---|
270 | #define REIT 352
|
---|
271 | #define REVL 353
|
---|
272 | #define REVW 354
|
---|
273 | #define RMPA 355
|
---|
274 | #define ROLC 356
|
---|
275 | #define RORC 357
|
---|
276 | #define ROTL 358
|
---|
277 | #define ROTR 359
|
---|
278 | #define ROUND 360
|
---|
279 | #define RTE 361
|
---|
280 | #define RTFI 362
|
---|
281 | #define RTS 363
|
---|
282 | #define RTSD 364
|
---|
283 | #define SAT 365
|
---|
284 | #define SATR 366
|
---|
285 | #define SBB 367
|
---|
286 | #define SCCND 368
|
---|
287 | #define SCMPU 369
|
---|
288 | #define SETPSW 370
|
---|
289 | #define SHAR 371
|
---|
290 | #define SHLL 372
|
---|
291 | #define SHLR 373
|
---|
292 | #define SMOVB 374
|
---|
293 | #define SMOVF 375
|
---|
294 | #define SMOVU 376
|
---|
295 | #define SSTR 377
|
---|
296 | #define STNZ 378
|
---|
297 | #define STOP 379
|
---|
298 | #define STZ 380
|
---|
299 | #define SUB 381
|
---|
300 | #define SUNTIL 382
|
---|
301 | #define SWHILE 383
|
---|
302 | #define TST 384
|
---|
303 | #define UTOF 385
|
---|
304 | #define WAIT 386
|
---|
305 | #define XCHG 387
|
---|
306 | #define XOR 388
|
---|
307 |
|
---|
308 |
|
---|
309 |
|
---|
310 |
|
---|
311 | #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
|
---|
312 | typedef union YYSTYPE
|
---|
313 | #line 135 "./config/rx-parse.y"
|
---|
314 | {
|
---|
315 | int regno;
|
---|
316 | expressionS exp;
|
---|
317 | }
|
---|
318 | /* Line 1529 of yacc.c. */
|
---|
319 | #line 320 "rx-parse.h"
|
---|
320 | YYSTYPE;
|
---|
321 | # define yystype YYSTYPE /* obsolescent; will be withdrawn */
|
---|
322 | # define YYSTYPE_IS_DECLARED 1
|
---|
323 | # define YYSTYPE_IS_TRIVIAL 1
|
---|
324 | #endif
|
---|
325 |
|
---|
326 | extern YYSTYPE rx_lval;
|
---|
327 |
|
---|