home *** CD-ROM | disk | FTP | other *** search
/ Large Pack of OldSkool DOS MOD Trackers / goattracker_2.68.zip / src / asm / asmtab.c next >
C/C++ Source or Header  |  2008-04-01  |  90KB  |  2,898 lines

  1. /* A Bison parser, made by GNU Bison 2.1.  */
  2.  
  3. /* Skeleton parser for Yacc-like parsing with Bison,
  4.    Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  5.  
  6.    This program is free software; you can redistribute it and/or modify
  7.    it under the terms of the GNU General Public License as published by
  8.    the Free Software Foundation; either version 2, or (at your option)
  9.    any later version.
  10.  
  11.    This program is distributed in the hope that it will be useful,
  12.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.    GNU General Public License for more details.
  15.  
  16.    You should have received a copy of the GNU General Public License
  17.    along with this program; if not, write to the Free Software
  18.    Foundation, Inc., 51 Franklin Street, Fifth Floor,
  19.    Boston, MA 02110-1301, USA.  */
  20.  
  21. /* As a special exception, when this file is copied by Bison into a
  22.    Bison output file, you may use that output file without restriction.
  23.    This special exception was added by the Free Software Foundation
  24.    in version 1.24 of Bison.  */
  25.  
  26. /* Written by Richard Stallman by simplifying the original so called
  27.    ``semantic'' parser.  */
  28.  
  29. /* All symbols defined below should begin with yy or YY, to avoid
  30.    infringing on user name space.  This should be done even for local
  31.    variables, as they might otherwise be expanded by user macros.
  32.    There are some unavoidable exceptions within include files to
  33.    define necessary library symbols; they are noted "INFRINGES ON
  34.    USER NAME SPACE" below.  */
  35.  
  36. /* Identify Bison output.  */
  37. #define YYBISON 1
  38.  
  39. /* Bison version.  */
  40. #define YYBISON_VERSION "2.1"
  41.  
  42. /* Skeleton name.  */
  43. #define YYSKELETON_NAME "yacc.c"
  44.  
  45. /* Pure parsers.  */
  46. #define YYPURE 0
  47.  
  48. /* Using locations.  */
  49. #define YYLSP_NEEDED 0
  50.  
  51.  
  52.  
  53. /* Tokens.  */
  54. #ifndef YYTOKENTYPE
  55. # define YYTOKENTYPE
  56.    /* Put the tokens into the symbol table, so that GDB and other debuggers
  57.       know about them.  */
  58.    enum yytokentype {
  59.      INCLUDE = 258,
  60.      IF = 259,
  61.      DEFINED = 260,
  62.      MACRO = 261,
  63.      MACRO_STRING = 262,
  64.      ORG = 263,
  65.      ERROR = 264,
  66.      ECHO = 265,
  67.      INCBIN = 266,
  68.      INCWORD = 267,
  69.      RES = 268,
  70.      WORD = 269,
  71.      BYTE = 270,
  72.      LDA = 271,
  73.      LDX = 272,
  74.      LDY = 273,
  75.      STA = 274,
  76.      STX = 275,
  77.      STY = 276,
  78.      AND = 277,
  79.      ORA = 278,
  80.      EOR = 279,
  81.      ADC = 280,
  82.      SBC = 281,
  83.      CMP = 282,
  84.      CPX = 283,
  85.      CPY = 284,
  86.      TSX = 285,
  87.      TXS = 286,
  88.      PHA = 287,
  89.      PLA = 288,
  90.      PHP = 289,
  91.      PLP = 290,
  92.      SEI = 291,
  93.      CLI = 292,
  94.      NOP = 293,
  95.      TYA = 294,
  96.      TAY = 295,
  97.      TXA = 296,
  98.      TAX = 297,
  99.      CLC = 298,
  100.      SEC = 299,
  101.      RTS = 300,
  102.      JSR = 301,
  103.      JMP = 302,
  104.      BEQ = 303,
  105.      BNE = 304,
  106.      BCC = 305,
  107.      BCS = 306,
  108.      BPL = 307,
  109.      BMI = 308,
  110.      BVC = 309,
  111.      BVS = 310,
  112.      INX = 311,
  113.      DEX = 312,
  114.      INY = 313,
  115.      DEY = 314,
  116.      INC = 315,
  117.      DEC = 316,
  118.      LSR = 317,
  119.      ASL = 318,
  120.      ROR = 319,
  121.      ROL = 320,
  122.      SYMBOL = 321,
  123.      STRING = 322,
  124.      LAND = 323,
  125.      LOR = 324,
  126.      LNOT = 325,
  127.      LPAREN = 326,
  128.      RPAREN = 327,
  129.      COMMA = 328,
  130.      COLON = 329,
  131.      X = 330,
  132.      Y = 331,
  133.      HASH = 332,
  134.      PLUS = 333,
  135.      MINUS = 334,
  136.      MULT = 335,
  137.      DIV = 336,
  138.      MOD = 337,
  139.      LT = 338,
  140.      GT = 339,
  141.      EQ = 340,
  142.      NEQ = 341,
  143.      ASSIGN = 342,
  144.      NUMBER = 343,
  145.      vNEG = 344
  146.    };
  147. #endif
  148. /* Tokens.  */
  149. #define INCLUDE 258
  150. #define IF 259
  151. #define DEFINED 260
  152. #define MACRO 261
  153. #define MACRO_STRING 262
  154. #define ORG 263
  155. #define ERROR 264
  156. #define ECHO 265
  157. #define INCBIN 266
  158. #define INCWORD 267
  159. #define RES 268
  160. #define WORD 269
  161. #define BYTE 270
  162. #define LDA 271
  163. #define LDX 272
  164. #define LDY 273
  165. #define STA 274
  166. #define STX 275
  167. #define STY 276
  168. #define AND 277
  169. #define ORA 278
  170. #define EOR 279
  171. #define ADC 280
  172. #define SBC 281
  173. #define CMP 282
  174. #define CPX 283
  175. #define CPY 284
  176. #define TSX 285
  177. #define TXS 286
  178. #define PHA 287
  179. #define PLA 288
  180. #define PHP 289
  181. #define PLP 290
  182. #define SEI 291
  183. #define CLI 292
  184. #define NOP 293
  185. #define TYA 294
  186. #define TAY 295
  187. #define TXA 296
  188. #define TAX 297
  189. #define CLC 298
  190. #define SEC 299
  191. #define RTS 300
  192. #define JSR 301
  193. #define JMP 302
  194. #define BEQ 303
  195. #define BNE 304
  196. #define BCC 305
  197. #define BCS 306
  198. #define BPL 307
  199. #define BMI 308
  200. #define BVC 309
  201. #define BVS 310
  202. #define INX 311
  203. #define DEX 312
  204. #define INY 313
  205. #define DEY 314
  206. #define INC 315
  207. #define DEC 316
  208. #define LSR 317
  209. #define ASL 318
  210. #define ROR 319
  211. #define ROL 320
  212. #define SYMBOL 321
  213. #define STRING 322
  214. #define LAND 323
  215. #define LOR 324
  216. #define LNOT 325
  217. #define LPAREN 326
  218. #define RPAREN 327
  219. #define COMMA 328
  220. #define COLON 329
  221. #define X 330
  222. #define Y 331
  223. #define HASH 332
  224. #define PLUS 333
  225. #define MINUS 334
  226. #define MULT 335
  227. #define DIV 336
  228. #define MOD 337
  229. #define LT 338
  230. #define GT 339
  231. #define EQ 340
  232. #define NEQ 341
  233. #define ASSIGN 342
  234. #define NUMBER 343
  235. #define vNEG 344
  236.  
  237.  
  238.  
  239.  
  240. /* Copy the first part of user declarations.  */
  241. // #line 1 "asm.y"
  242.  
  243. #include "int.h"
  244. #include "parse.h"
  245. #include "vec.h"
  246. #include "membuf.h"
  247. #include "log.h"
  248. #include <stdio.h>
  249.  
  250. #define YYERROR_VERBOSE
  251.  
  252. static struct vec asm_atoms[1];
  253.  
  254.  
  255. /* Enabling traces.  */
  256. #ifndef YYDEBUG
  257. # define YYDEBUG 1
  258. #endif
  259.  
  260. /* Enabling verbose error messages.  */
  261. #ifdef YYERROR_VERBOSE
  262. # undef YYERROR_VERBOSE
  263. # define YYERROR_VERBOSE 1
  264. #else
  265. # define YYERROR_VERBOSE 0
  266. #endif
  267.  
  268. /* Enabling the token table.  */
  269. #ifndef YYTOKEN_TABLE
  270. # define YYTOKEN_TABLE 0
  271. #endif
  272.  
  273. #if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
  274. // #line 110 "asm.y"
  275. typedef union YYSTYPE {
  276.     i32 num;
  277.     char *str;
  278.     struct atom *atom;
  279.     struct expr *expr;
  280. } YYSTYPE;
  281. /* Line 196 of yacc.c.  */
  282. // #line 282 "asm.tab.c"
  283. # define yystype YYSTYPE /* obsolescent; will be withdrawn */
  284. # define YYSTYPE_IS_DECLARED 1
  285. # define YYSTYPE_IS_TRIVIAL 1
  286. #endif
  287.  
  288.  
  289.  
  290. /* Copy the second part of user declarations.  */
  291.  
  292.  
  293. /* Line 219 of yacc.c.  */
  294. // #line 294 "asm.tab.c"
  295.  
  296. #if ! defined (YYSIZE_T) && defined (__SIZE_TYPE__)
  297. # define YYSIZE_T __SIZE_TYPE__
  298. #endif
  299. #if ! defined (YYSIZE_T) && defined (size_t)
  300. # define YYSIZE_T size_t
  301. #endif
  302. #if ! defined (YYSIZE_T) && (defined (__STDC__) || defined (__cplusplus))
  303. # include <stddef.h> /* INFRINGES ON USER NAME SPACE */
  304. # define YYSIZE_T size_t
  305. #endif
  306. #if ! defined (YYSIZE_T)
  307. # define YYSIZE_T unsigned int
  308. #endif
  309.  
  310. #ifndef YY_
  311. # if YYENABLE_NLS
  312. #  if ENABLE_NLS
  313. #   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
  314. #   define YY_(msgid) dgettext ("bison-runtime", msgid)
  315. #  endif
  316. # endif
  317. # ifndef YY_
  318. #  define YY_(msgid) msgid
  319. # endif
  320. #endif
  321.  
  322. #if ! defined (yyoverflow) || YYERROR_VERBOSE
  323.  
  324. /* The parser invokes alloca or malloc; define the necessary symbols.  */
  325.  
  326. # ifdef YYSTACK_USE_ALLOCA
  327. #  if YYSTACK_USE_ALLOCA
  328. #   ifdef __GNUC__
  329. #    define YYSTACK_ALLOC __builtin_alloca
  330. #   else
  331. #    define YYSTACK_ALLOC alloca
  332. #    if defined (__STDC__) || defined (__cplusplus)
  333. #     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
  334. #     define YYINCLUDED_STDLIB_H
  335. #    endif
  336. #   endif
  337. #  endif
  338. # endif
  339.  
  340. # ifdef YYSTACK_ALLOC
  341.    /* Pacify GCC's `empty if-body' warning. */
  342. #  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
  343. #  ifndef YYSTACK_ALLOC_MAXIMUM
  344.     /* The OS might guarantee only one guard page at the bottom of the stack,
  345.        and a page size can be as small as 4096 bytes.  So we cannot safely
  346.        invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
  347.        to allow for a few compiler-allocated temporary stack slots.  */
  348. #   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2005 */
  349. #  endif
  350. # else
  351. #  define YYSTACK_ALLOC YYMALLOC
  352. #  define YYSTACK_FREE YYFREE
  353. #  ifndef YYSTACK_ALLOC_MAXIMUM
  354. #   define YYSTACK_ALLOC_MAXIMUM ((YYSIZE_T) -1)
  355. #  endif
  356. #  ifdef __cplusplus
  357. extern "C" {
  358. #  endif
  359. #  ifndef YYMALLOC
  360. #   define YYMALLOC malloc
  361. #   if (! defined (malloc) && ! defined (YYINCLUDED_STDLIB_H) \
  362.     && (defined (__STDC__) || defined (__cplusplus)))
  363. void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
  364. #   endif
  365. #  endif
  366. #  ifndef YYFREE
  367. #   define YYFREE free
  368. #   if (! defined (free) && ! defined (YYINCLUDED_STDLIB_H) \
  369.     && (defined (__STDC__) || defined (__cplusplus)))
  370. void free (void *); /* INFRINGES ON USER NAME SPACE */
  371. #   endif
  372. #  endif
  373. #  ifdef __cplusplus
  374. }
  375. #  endif
  376. # endif
  377. #endif /* ! defined (yyoverflow) || YYERROR_VERBOSE */
  378.  
  379.  
  380. #if (! defined (yyoverflow) \
  381.      && (! defined (__cplusplus) \
  382.      || (defined (YYSTYPE_IS_TRIVIAL) && YYSTYPE_IS_TRIVIAL)))
  383.  
  384. /* A type that is properly aligned for any stack member.  */
  385. union yyalloc
  386. {
  387.   short int yyss;
  388.   YYSTYPE yyvs;
  389.   };
  390.  
  391. /* The size of the maximum gap between one aligned stack and the next.  */
  392. # define YYSTACK_GAP_MAXIMUM (sizeof (union yyalloc) - 1)
  393.  
  394. /* The size of an array large to enough to hold all stacks, each with
  395.    N elements.  */
  396. # define YYSTACK_BYTES(N) \
  397.      ((N) * (sizeof (short int) + sizeof (YYSTYPE))            \
  398.       + YYSTACK_GAP_MAXIMUM)
  399.  
  400. /* Copy COUNT objects from FROM to TO.  The source and destination do
  401.    not overlap.  */
  402. # ifndef YYCOPY
  403. #  if defined (__GNUC__) && 1 < __GNUC__
  404. #   define YYCOPY(To, From, Count) \
  405.       __builtin_memcpy (To, From, (Count) * sizeof (*(From)))
  406. #  else
  407. #   define YYCOPY(To, From, Count)        \
  408.       do                    \
  409.     {                    \
  410.       YYSIZE_T yyi;                \
  411.       for (yyi = 0; yyi < (Count); yyi++)    \
  412.         (To)[yyi] = (From)[yyi];        \
  413.     }                    \
  414.       while (0)
  415. #  endif
  416. # endif
  417.  
  418. /* Relocate STACK from its old location to the new one.  The
  419.    local variables YYSIZE and YYSTACKSIZE give the old and new number of
  420.    elements in the stack, and YYPTR gives the new location of the
  421.    stack.  Advance YYPTR to a properly aligned location for the next
  422.    stack.  */
  423. # define YYSTACK_RELOCATE(Stack)                    \
  424.     do                                    \
  425.       {                                    \
  426.     YYSIZE_T yynewbytes;                        \
  427.     YYCOPY (&yyptr->Stack, Stack, yysize);                \
  428.     Stack = &yyptr->Stack;                        \
  429.     yynewbytes = yystacksize * sizeof (*Stack) + YYSTACK_GAP_MAXIMUM; \
  430.     yyptr += yynewbytes / sizeof (*yyptr);                \
  431.       }                                    \
  432.     while (0)
  433.  
  434. #endif
  435.  
  436. #if defined (__STDC__) || defined (__cplusplus)
  437.    typedef signed char yysigned_char;
  438. #else
  439.    typedef short int yysigned_char;
  440. #endif
  441.  
  442. /* YYFINAL -- State number of the termination state. */
  443. #define YYFINAL  212
  444. /* YYLAST -- Last index in YYTABLE.  */
  445. #define YYLAST   591
  446.  
  447. /* YYNTOKENS -- Number of terminals. */
  448. #define YYNTOKENS  90
  449. /* YYNNTS -- Number of nonterminals. */
  450. #define YYNNTS  17
  451. /* YYNRULES -- Number of rules. */
  452. #define YYNRULES  193
  453. /* YYNRULES -- Number of states. */
  454. #define YYNSTATES  307
  455.  
  456. /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX.  */
  457. #define YYUNDEFTOK  2
  458. #define YYMAXUTOK   344
  459.  
  460. #define YYTRANSLATE(YYX)                        \
  461.   ((unsigned int) (YYX) <= YYMAXUTOK ? yytranslate[YYX] : YYUNDEFTOK)
  462.  
  463. /* YYTRANSLATE[YYLEX] -- Bison symbol number corresponding to YYLEX.  */
  464. static const unsigned char yytranslate[] =
  465. {
  466.        0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  467.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  468.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  469.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  470.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  471.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  472.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  473.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  474.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  475.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  476.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  477.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  478.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  479.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  480.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  481.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  482.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  483.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  484.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  485.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  486.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  487.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  488.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  489.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  490.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  491.        2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
  492.        5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
  493.       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
  494.       25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
  495.       35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
  496.       45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
  497.       55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
  498.       65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
  499.       75,    76,    77,    78,    79,    80,    81,    82,    83,    84,
  500.       85,    86,    87,    88,    89
  501. };
  502.  
  503. #if YYDEBUG
  504. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  505.    YYRHS.  */
  506. static const unsigned short int yyprhs[] =
  507. {
  508.        0,     0,     3,     6,     8,    11,    15,    20,    25,    30,
  509.       35,    40,    45,    47,    49,    51,    58,    63,    68,    73,
  510.       80,    89,    93,    95,    98,   101,   104,   107,   110,   113,
  511.      116,   119,   122,   125,   128,   131,   134,   137,   140,   143,
  512.      146,   149,   152,   155,   158,   161,   164,   167,   170,   173,
  513.      176,   179,   182,   185,   188,   191,   194,   197,   200,   203,
  514.      206,   209,   212,   215,   218,   221,   224,   227,   230,   233,
  515.      236,   239,   242,   245,   248,   251,   254,   257,   260,   263,
  516.      266,   269,   272,   275,   278,   281,   284,   287,   290,   293,
  517.      296,   299,   302,   305,   308,   311,   314,   317,   320,   323,
  518.      326,   329,   332,   335,   338,   341,   344,   347,   350,   352,
  519.      354,   356,   358,   360,   362,   364,   366,   368,   370,   372,
  520.      374,   376,   378,   380,   382,   385,   388,   391,   394,   397,
  521.      400,   403,   406,   409,   412,   414,   416,   418,   420,   423,
  522.      426,   429,   432,   435,   438,   441,   444,   446,   449,   452,
  523.      455,   458,   460,   463,   466,   469,   472,   474,   477,   480,
  524.      483,   486,   488,   491,   494,   497,   500,   503,   505,   509,
  525.      513,   516,   521,   526,   532,   538,   542,   546,   550,   554,
  526.      558,   561,   565,   572,   574,   576,   580,   584,   587,   591,
  527.      595,   599,   603,   607
  528. };
  529.  
  530. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  531. static const yysigned_char yyrhs[] =
  532. {
  533.       91,     0,    -1,    91,    92,    -1,    92,    -1,    66,    74,
  534.       -1,    66,    87,   105,    -1,     4,    71,   106,    72,    -1,
  535.        8,    71,   105,    72,    -1,     9,    71,    67,    72,    -1,
  536.       10,    71,    67,    72,    -1,     3,    71,    67,    72,    -1,
  537.        6,    71,    67,    72,    -1,    93,    -1,     7,    -1,    95,
  538.       -1,    13,    71,   105,    73,   105,    72,    -1,    14,    71,
  539.       94,    72,    -1,    15,    71,    94,    72,    -1,    11,    71,
  540.       67,    72,    -1,    11,    71,    67,    73,   105,    72,    -1,
  541.       11,    71,    67,    73,   105,    73,   105,    72,    -1,    94,
  542.       73,   105,    -1,   105,    -1,    16,    96,    -1,    16,   100,
  543.       -1,    16,   101,    -1,    16,    97,    -1,    16,    98,    -1,
  544.       16,    99,    -1,    16,   103,    -1,    16,   104,    -1,    17,
  545.       96,    -1,    17,   100,    -1,    17,   102,    -1,    17,    97,
  546.       -1,    17,    99,    -1,    18,    96,    -1,    18,   100,    -1,
  547.       18,   101,    -1,    18,    97,    -1,    18,    99,    -1,    19,
  548.      100,    -1,    19,   101,    -1,    19,    97,    -1,    19,    98,
  549.       -1,    19,    99,    -1,    19,   103,    -1,    19,   104,    -1,
  550.       20,   100,    -1,    20,   102,    -1,    20,    97,    -1,    21,
  551.      100,    -1,    21,   101,    -1,    21,    97,    -1,    22,    96,
  552.       -1,    22,   100,    -1,    22,   101,    -1,    22,    97,    -1,
  553.       22,    98,    -1,    22,    99,    -1,    22,   103,    -1,    22,
  554.      104,    -1,    23,    96,    -1,    23,   100,    -1,    23,   101,
  555.       -1,    23,    97,    -1,    23,    98,    -1,    23,    99,    -1,
  556.       23,   103,    -1,    23,   104,    -1,    24,    96,    -1,    24,
  557.      100,    -1,    24,   101,    -1,    24,    97,    -1,    24,    98,
  558.       -1,    24,    99,    -1,    24,   103,    -1,    24,   104,    -1,
  559.       25,    96,    -1,    25,   100,    -1,    25,   101,    -1,    25,
  560.       97,    -1,    25,    98,    -1,    25,    99,    -1,    25,   103,
  561.       -1,    25,   104,    -1,    26,    96,    -1,    26,   100,    -1,
  562.       26,   101,    -1,    26,    97,    -1,    26,    98,    -1,    26,
  563.       99,    -1,    26,   103,    -1,    26,   104,    -1,    27,    96,
  564.       -1,    27,   100,    -1,    27,   101,    -1,    27,    97,    -1,
  565.       27,    98,    -1,    27,    99,    -1,    27,   103,    -1,    27,
  566.      104,    -1,    28,    96,    -1,    28,   100,    -1,    28,    97,
  567.       -1,    29,    96,    -1,    29,   100,    -1,    29,    97,    -1,
  568.       31,    -1,    30,    -1,    32,    -1,    33,    -1,    34,    -1,
  569.       35,    -1,    36,    -1,    37,    -1,    38,    -1,    39,    -1,
  570.       40,    -1,    41,    -1,    42,    -1,    43,    -1,    44,    -1,
  571.       45,    -1,    46,    97,    -1,    47,    97,    -1,    48,    97,
  572.       -1,    49,    97,    -1,    50,    97,    -1,    51,    97,    -1,
  573.       52,    97,    -1,    53,    97,    -1,    54,    97,    -1,    55,
  574.       97,    -1,    56,    -1,    57,    -1,    58,    -1,    59,    -1,
  575.       60,   100,    -1,    60,   101,    -1,    60,    97,    -1,    60,
  576.       98,    -1,    61,   100,    -1,    61,   101,    -1,    61,    97,
  577.       -1,    61,    98,    -1,    62,    -1,    62,   100,    -1,    62,
  578.      101,    -1,    62,    97,    -1,    62,    98,    -1,    63,    -1,
  579.       63,   100,    -1,    63,   101,    -1,    63,    97,    -1,    63,
  580.       98,    -1,    64,    -1,    64,   100,    -1,    64,   101,    -1,
  581.       64,    97,    -1,    64,    98,    -1,    65,    -1,    65,   100,
  582.       -1,    65,   101,    -1,    65,    97,    -1,    65,    98,    -1,
  583.       77,   105,    -1,   105,    -1,   105,    73,    75,    -1,   105,
  584.       73,    76,    -1,    83,   105,    -1,    83,   105,    73,    75,
  585.       -1,    83,   105,    73,    76,    -1,    71,   105,    73,    75,
  586.       72,    -1,    71,   105,    72,    73,    76,    -1,   105,    78,
  587.      105,    -1,   105,    79,   105,    -1,   105,    80,   105,    -1,
  588.      105,    81,   105,    -1,   105,    82,   105,    -1,    79,   105,
  589.       -1,    71,   105,    72,    -1,    12,    71,    67,    73,   105,
  590.       72,    -1,    88,    -1,    66,    -1,   106,    69,   106,    -1,
  591.      106,    68,   106,    -1,    70,   106,    -1,    71,   106,    72,
  592.       -1,   105,    83,   105,    -1,   105,    84,   105,    -1,   105,
  593.       85,   105,    -1,   105,    86,   105,    -1,     5,    71,    66,
  594.       72,    -1
  595. };
  596.  
  597. /* YYRLINE[YYN] -- source line where rule number YYN was defined.  */
  598. static const unsigned short int yyrline[] =
  599. {
  600.        0,   144,   144,   144,   145,   146,   147,   148,   149,   150,
  601.      151,   152,   153,   154,   156,   157,   158,   159,   160,   162,
  602.      164,   167,   168,   170,   171,   172,   173,   174,   175,   176,
  603.      177,   179,   180,   181,   182,   183,   185,   186,   187,   188,
  604.      189,   191,   192,   193,   194,   195,   196,   197,   199,   200,
  605.      201,   203,   204,   205,   207,   208,   209,   210,   211,   212,
  606.      213,   214,   216,   217,   218,   219,   220,   221,   222,   223,
  607.      225,   226,   227,   228,   229,   230,   231,   232,   234,   235,
  608.      236,   237,   238,   239,   240,   241,   243,   244,   245,   246,
  609.      247,   248,   249,   250,   252,   253,   254,   255,   256,   257,
  610.      258,   259,   261,   262,   263,   264,   265,   266,   268,   269,
  611.      270,   271,   272,   273,   274,   275,   276,   277,   278,   279,
  612.      280,   281,   282,   283,   285,   286,   287,   288,   289,   290,
  613.      291,   292,   293,   294,   296,   297,   298,   299,   301,   302,
  614.      303,   304,   306,   307,   308,   309,   311,   312,   313,   314,
  615.      315,   317,   318,   319,   320,   321,   323,   324,   325,   326,
  616.      327,   329,   330,   331,   332,   333,   335,   336,   337,   338,
  617.      339,   340,   341,   342,   343,   345,   346,   347,   348,   349,
  618.      350,   351,   352,   354,   355,   357,   358,   359,   360,   361,
  619.      362,   363,   364,   366
  620. };
  621. #endif
  622.  
  623. #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
  624. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  625.    First, the terminals, then, starting at YYNTOKENS, nonterminals. */
  626. static const char *const yytname[] =
  627. {
  628.   "$end", "error", "$undefined", "INCLUDE", "IF", "DEFINED", "MACRO",
  629.   "MACRO_STRING", "ORG", "ERROR", "ECHO", "INCBIN", "INCWORD", "RES",
  630.   "WORD", "BYTE", "LDA", "LDX", "LDY", "STA", "STX", "STY", "AND", "ORA",
  631.   "EOR", "ADC", "SBC", "CMP", "CPX", "CPY", "TSX", "TXS", "PHA", "PLA",
  632.   "PHP", "PLP", "SEI", "CLI", "NOP", "TYA", "TAY", "TXA", "TAX", "CLC",
  633.   "SEC", "RTS", "JSR", "JMP", "BEQ", "BNE", "BCC", "BCS", "BPL", "BMI",
  634.   "BVC", "BVS", "INX", "DEX", "INY", "DEY", "INC", "DEC", "LSR", "ASL",
  635.   "ROR", "ROL", "SYMBOL", "STRING", "LAND", "LOR", "LNOT", "LPAREN",
  636.   "RPAREN", "COMMA", "COLON", "X", "Y", "HASH", "PLUS", "MINUS", "MULT",
  637.   "DIV", "MOD", "LT", "GT", "EQ", "NEQ", "ASSIGN", "NUMBER", "vNEG",
  638.   "$accept", "stmts", "stmt", "atom", "exprs", "op", "am_im", "am_a",
  639.   "am_ax", "am_ay", "am_zp", "am_zpx", "am_zpy", "am_ix", "am_iy", "expr",
  640.   "lexpr", 0
  641. };
  642. #endif
  643.  
  644. # ifdef YYPRINT
  645. /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to
  646.    token YYLEX-NUM.  */
  647. static const unsigned short int yytoknum[] =
  648. {
  649.        0,   256,   257,   258,   259,   260,   261,   262,   263,   264,
  650.      265,   266,   267,   268,   269,   270,   271,   272,   273,   274,
  651.      275,   276,   277,   278,   279,   280,   281,   282,   283,   284,
  652.      285,   286,   287,   288,   289,   290,   291,   292,   293,   294,
  653.      295,   296,   297,   298,   299,   300,   301,   302,   303,   304,
  654.      305,   306,   307,   308,   309,   310,   311,   312,   313,   314,
  655.      315,   316,   317,   318,   319,   320,   321,   322,   323,   324,
  656.      325,   326,   327,   328,   329,   330,   331,   332,   333,   334,
  657.      335,   336,   337,   338,   339,   340,   341,   342,   343,   344
  658. };
  659. # endif
  660.  
  661. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives.  */
  662. static const unsigned char yyr1[] =
  663. {
  664.        0,    90,    91,    91,    92,    92,    92,    92,    92,    92,
  665.       92,    92,    92,    92,    93,    93,    93,    93,    93,    93,
  666.       93,    94,    94,    95,    95,    95,    95,    95,    95,    95,
  667.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  668.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  669.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  670.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  671.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  672.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  673.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  674.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  675.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  676.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  677.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  678.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  679.       95,    95,    95,    95,    95,    95,    95,    95,    95,    95,
  680.       95,    95,    95,    95,    95,    95,    96,    97,    98,    99,
  681.      100,   101,   102,   103,   104,   105,   105,   105,   105,   105,
  682.      105,   105,   105,   105,   105,   106,   106,   106,   106,   106,
  683.      106,   106,   106,   106
  684. };
  685.  
  686. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN.  */
  687. static const unsigned char yyr2[] =
  688. {
  689.        0,     2,     2,     1,     2,     3,     4,     4,     4,     4,
  690.        4,     4,     1,     1,     1,     6,     4,     4,     4,     6,
  691.        8,     3,     1,     2,     2,     2,     2,     2,     2,     2,
  692.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  693.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  694.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  695.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  696.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  697.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  698.        2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
  699.        2,     2,     2,     2,     2,     2,     2,     2,     1,     1,
  700.        1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
  701.        1,     1,     1,     1,     2,     2,     2,     2,     2,     2,
  702.        2,     2,     2,     2,     1,     1,     1,     1,     2,     2,
  703.        2,     2,     2,     2,     2,     2,     1,     2,     2,     2,
  704.        2,     1,     2,     2,     2,     2,     1,     2,     2,     2,
  705.        2,     1,     2,     2,     2,     2,     2,     1,     3,     3,
  706.        2,     4,     4,     5,     5,     3,     3,     3,     3,     3,
  707.        2,     3,     6,     1,     1,     3,     3,     2,     3,     3,
  708.        3,     3,     3,     4
  709. };
  710.  
  711. /* YYDEFACT[STATE-NAME] -- Default rule to reduce with in state
  712.    STATE-NUM when YYTABLE doesn't specify something else to do.  Zero
  713.    means the default is an error.  */
  714. static const unsigned char yydefact[] =
  715. {
  716.        0,     0,     0,     0,    13,     0,     0,     0,     0,     0,
  717.        0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
  718.        0,     0,     0,     0,     0,     0,   109,   108,   110,   111,
  719.      112,   113,   114,   115,   116,   117,   118,   119,   120,   121,
  720.      122,   123,     0,     0,     0,     0,     0,     0,     0,     0,
  721.        0,     0,   134,   135,   136,   137,     0,     0,   146,   151,
  722.      156,   161,     0,     0,     3,    12,    14,     0,     0,     0,
  723.        0,     0,     0,     0,     0,     0,     0,     0,   184,     0,
  724.        0,     0,     0,   183,    23,    26,    27,    28,    24,    25,
  725.       29,    30,   167,     0,     0,    31,    34,    35,    32,    33,
  726.      167,    36,    39,    40,    37,    38,    43,    44,    45,    41,
  727.       42,    46,    47,    50,    48,    49,   167,    53,    51,    52,
  728.       54,    57,    58,    59,    55,    56,    60,    61,    62,    65,
  729.       66,    67,    63,    64,    68,    69,    70,    73,    74,    75,
  730.       71,    72,    76,    77,    78,    81,    82,    83,    79,    80,
  731.       84,    85,    86,    89,    90,    91,    87,    88,    92,    93,
  732.       94,    97,    98,    99,    95,    96,   100,   101,     0,   102,
  733.      104,   103,   105,   107,   106,   124,   125,   126,   127,   128,
  734.      129,   130,   131,   132,   133,   140,   141,   138,   139,   167,
  735.      144,   145,   142,   143,   149,   150,   147,   148,   154,   155,
  736.      152,   153,   159,   160,   157,   158,   164,   165,   162,   163,
  737.        4,     0,     1,     2,     0,     0,     0,     0,     0,     0,
  738.        0,     0,     0,     0,     0,     0,     0,    22,     0,     0,
  739.        0,   166,   180,   170,     0,     0,     0,     0,     0,     0,
  740.        0,   170,     0,   170,     0,     5,    10,     0,   187,     0,
  741.        0,     0,     0,     0,     0,     0,     0,     6,    11,     7,
  742.        8,     9,    18,     0,     0,    16,     0,    17,     0,   181,
  743.        0,     0,   168,   169,   175,   176,   177,   178,   179,   181,
  744.        0,     0,   188,   189,   190,   191,   192,   186,   185,     0,
  745.        0,    21,     0,     0,     0,   171,   172,   193,    19,     0,
  746.       15,     0,   174,   173,     0,   182,    20
  747. };
  748.  
  749. /* YYDEFGOTO[NTERM-NUM]. */
  750. static const short int yydefgoto[] =
  751. {
  752.       -1,    63,    64,    65,   226,    66,    84,    85,    86,    87,
  753.       88,    89,    99,    90,    91,   116,   219
  754. };
  755.  
  756. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  757.    STATE-NUM.  */
  758. #define YYPACT_NINF -202
  759. static const short int yypact[] =
  760. {
  761.      339,   -67,   -28,   -14,  -202,   -10,    -6,    -5,     1,     4,
  762.        5,     9,     8,    22,    23,    41,    48,    59,     8,     8,
  763.        8,     8,     8,     8,    38,    38,  -202,  -202,  -202,  -202,
  764.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  765.     -202,  -202,    78,    78,    78,    78,    78,    78,    78,    78,
  766.       78,    78,  -202,  -202,  -202,  -202,    59,    59,    59,    59,
  767.       59,    59,   -69,   275,  -202,  -202,  -202,    -8,     7,    16,
  768.       78,    17,    25,    30,    78,    78,    78,    27,  -202,    78,
  769.       78,    78,    78,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  770.     -202,  -202,   441,    78,    78,  -202,  -202,  -202,  -202,  -202,
  771.      451,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  772.     -202,  -202,  -202,  -202,  -202,  -202,   102,  -202,  -202,  -202,
  773.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  774.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  775.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  776.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  777.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,    78,  -202,
  778.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  779.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,   461,
  780.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  781.     -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,  -202,
  782.     -202,    78,  -202,  -202,    31,    37,     7,     7,   188,    65,
  783.       44,   399,    46,    50,   -59,   471,   -51,   102,   -36,    56,
  784.      -40,   102,  -202,   481,   -24,    78,    78,    78,    78,    78,
  785.      410,   491,    52,   102,    57,   102,  -202,    47,  -202,   -55,
  786.       71,    78,    78,    78,    78,     7,     7,  -202,  -202,  -202,
  787.     -202,  -202,  -202,    78,    78,  -202,    78,  -202,    62,    68,
  788.       73,    80,  -202,  -202,    70,    70,  -202,  -202,  -202,  -202,
  789.       69,    74,  -202,   102,   102,   102,   102,  -202,   117,   394,
  790.      415,   102,    78,   112,   124,  -202,  -202,  -202,  -202,    78,
  791.     -202,   426,  -202,  -202,   431,  -202,  -202
  792. };
  793.  
  794. /* YYPGOTO[NTERM-NUM].  */
  795. static const short int yypgoto[] =
  796. {
  797.     -202,  -202,   134,  -202,   122,  -202,   140,   393,   404,   242,
  798.      154,   172,   184,   559,   568,   -12,  -201
  799. };
  800.  
  801. /* YYTABLE[YYPACT[STATE-NUM]].  What to do in state STATE-NUM.  If
  802.    positive, shift that token.  If negative, reduce the rule which
  803.    number is the opposite.  If zero, do what YYDEFACT says.
  804.    If YYTABLE_NINF, syntax error.  */
  805. #define YYTABLE_NINF -1
  806. static const unsigned short int yytable[] =
  807. {
  808.       92,   100,   100,    92,    67,   210,    92,    92,    92,    92,
  809.       92,    92,   215,   262,   263,   248,   250,   279,   211,    77,
  810.       77,   265,   266,   235,   236,   237,   238,   239,   251,   252,
  811.      253,   254,   269,   270,    77,    77,   267,   266,   235,   236,
  812.      237,   238,   239,    68,   189,   189,   189,   189,   189,   189,
  813.       77,   272,   273,    77,   287,   288,   218,    69,   221,   214,
  814.       77,    70,   225,   227,   227,    71,    72,   230,   231,   232,
  815.      233,    77,    73,    78,    78,    74,    75,   216,   217,    79,
  816.       76,   240,   241,   220,   222,    80,    81,    81,    78,    78,
  817.       77,    82,   223,    93,    93,    83,    83,   224,   229,    80,
  818.       80,    81,    81,   246,    78,    94,    82,    78,   247,    93,
  819.       83,    83,    79,   281,    78,    80,   258,    81,   260,    93,
  820.       81,   168,   261,   268,    82,    78,    83,    81,   273,    83,
  821.       93,    94,   272,   255,   256,   292,    83,   257,    81,   255,
  822.      256,   293,    82,   282,    78,   296,   297,    83,   294,    93,
  823.      237,   238,   239,    95,   101,   295,   243,    81,   120,   128,
  824.      136,   144,   152,   160,   169,   172,    83,    98,   104,   109,
  825.      114,   118,   124,   132,   140,   148,   156,   164,   171,   174,
  826.      235,   236,   237,   238,   239,   255,   105,   110,   302,   119,
  827.      125,   133,   141,   149,   157,   165,   303,   213,   228,   245,
  828.      115,     0,     0,     0,   218,   249,     0,     0,     0,     0,
  829.      187,   192,   196,   200,   204,   208,     0,     0,     0,     0,
  830.        0,     0,     0,   274,   275,   276,   277,   278,   188,   193,
  831.      197,   201,   205,   209,     0,     0,     0,     0,     0,   283,
  832.      284,   285,   286,   218,   218,     0,     0,     0,     0,     0,
  833.        0,   289,   290,     0,   291,    97,   103,   108,     0,     0,
  834.      123,   131,   139,   147,   155,   163,   235,   236,   237,   238,
  835.      239,   251,   252,   253,   254,   212,     0,     0,     1,     2,
  836.      301,     3,     4,     5,     6,     7,     8,   304,     9,    10,
  837.       11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
  838.       21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
  839.       31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
  840.       41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
  841.       51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
  842.       61,    62,     1,     2,     0,     3,     4,     5,     6,     7,
  843.        8,     0,     9,    10,    11,    12,    13,    14,    15,    16,
  844.       17,    18,    19,    20,    21,    22,    23,    24,    25,    26,
  845.       27,    28,    29,    30,    31,    32,    33,    34,    35,    36,
  846.       37,    38,    39,    40,    41,    42,    43,    44,    45,    46,
  847.       47,    48,    49,    50,    51,    52,    53,    54,    55,    56,
  848.       57,    58,    59,    60,    61,    62,    96,   102,   106,   113,
  849.      117,   121,   129,   137,   145,   153,   161,   170,   173,   107,
  850.        0,     0,   122,   130,   138,   146,   154,   162,     0,     0,
  851.        0,     0,     0,     0,     0,   175,   176,   177,   178,   179,
  852.      180,   181,   182,   183,   184,     0,     0,     0,     0,   185,
  853.      190,   194,   198,   202,   206,     0,     0,     0,     0,     0,
  854.      186,   191,   195,   199,   203,   207,   298,   299,     0,     0,
  855.        0,   259,   235,   236,   237,   238,   239,   235,   236,   237,
  856.      238,   239,   279,     0,     0,     0,     0,   300,   235,   236,
  857.      237,   238,   239,   235,   236,   237,   238,   239,   305,     0,
  858.        0,     0,     0,   306,   235,   236,   237,   238,   239,   235,
  859.      236,   237,   238,   239,   234,     0,     0,     0,     0,   235,
  860.      236,   237,   238,   239,   242,     0,     0,     0,     0,   235,
  861.      236,   237,   238,   239,   244,     0,     0,     0,     0,   235,
  862.      236,   237,   238,   239,   264,     0,     0,     0,     0,   235,
  863.      236,   237,   238,   239,   271,     0,     0,     0,     0,   235,
  864.      236,   237,   238,   239,   280,     0,     0,     0,     0,   235,
  865.      236,   237,   238,   239,   111,     0,     0,   126,   134,   142,
  866.      150,   158,   166,   112,     0,     0,   127,   135,   143,   151,
  867.      159,   167
  868. };
  869.  
  870. static const short int yycheck[] =
  871. {
  872.       12,    13,    14,    15,    71,    74,    18,    19,    20,    21,
  873.       22,    23,     5,    72,    73,   216,   217,    72,    87,    12,
  874.       12,    72,    73,    78,    79,    80,    81,    82,    83,    84,
  875.       85,    86,    72,    73,    12,    12,    72,    73,    78,    79,
  876.       80,    81,    82,    71,    56,    57,    58,    59,    60,    61,
  877.       12,    75,    76,    12,   255,   256,    68,    71,    70,    67,
  878.       12,    71,    74,    75,    76,    71,    71,    79,    80,    81,
  879.       82,    12,    71,    66,    66,    71,    71,    70,    71,    71,
  880.       71,    93,    94,    67,    67,    77,    79,    79,    66,    66,
  881.       12,    83,    67,    71,    71,    88,    88,    67,    71,    77,
  882.       77,    79,    79,    72,    66,    83,    83,    66,    71,    71,
  883.       88,    88,    71,    66,    66,    77,    72,    79,    72,    71,
  884.       79,    83,    72,    67,    83,    66,    88,    79,    76,    88,
  885.       71,    83,    75,    68,    69,    73,    88,    72,    79,    68,
  886.       69,    73,    83,    72,    66,    76,    72,    88,    75,    71,
  887.       80,    81,    82,    13,    14,    75,   168,    79,    18,    19,
  888.       20,    21,    22,    23,    24,    25,    88,    13,    14,    15,
  889.       16,    17,    18,    19,    20,    21,    22,    23,    24,    25,
  890.       78,    79,    80,    81,    82,    68,    14,    15,    76,    17,
  891.       18,    19,    20,    21,    22,    23,    72,    63,    76,   211,
  892.       16,    -1,    -1,    -1,   216,   217,    -1,    -1,    -1,    -1,
  893.       56,    57,    58,    59,    60,    61,    -1,    -1,    -1,    -1,
  894.       -1,    -1,    -1,   235,   236,   237,   238,   239,    56,    57,
  895.       58,    59,    60,    61,    -1,    -1,    -1,    -1,    -1,   251,
  896.      252,   253,   254,   255,   256,    -1,    -1,    -1,    -1,    -1,
  897.       -1,   263,   264,    -1,   266,    13,    14,    15,    -1,    -1,
  898.       18,    19,    20,    21,    22,    23,    78,    79,    80,    81,
  899.       82,    83,    84,    85,    86,     0,    -1,    -1,     3,     4,
  900.      292,     6,     7,     8,     9,    10,    11,   299,    13,    14,
  901.       15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
  902.       25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
  903.       35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
  904.       45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
  905.       55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
  906.       65,    66,     3,     4,    -1,     6,     7,     8,     9,    10,
  907.       11,    -1,    13,    14,    15,    16,    17,    18,    19,    20,
  908.       21,    22,    23,    24,    25,    26,    27,    28,    29,    30,
  909.       31,    32,    33,    34,    35,    36,    37,    38,    39,    40,
  910.       41,    42,    43,    44,    45,    46,    47,    48,    49,    50,
  911.       51,    52,    53,    54,    55,    56,    57,    58,    59,    60,
  912.       61,    62,    63,    64,    65,    66,    13,    14,    15,    16,
  913.       17,    18,    19,    20,    21,    22,    23,    24,    25,    15,
  914.       -1,    -1,    18,    19,    20,    21,    22,    23,    -1,    -1,
  915.       -1,    -1,    -1,    -1,    -1,    42,    43,    44,    45,    46,
  916.       47,    48,    49,    50,    51,    -1,    -1,    -1,    -1,    56,
  917.       57,    58,    59,    60,    61,    -1,    -1,    -1,    -1,    -1,
  918.       56,    57,    58,    59,    60,    61,    72,    73,    -1,    -1,
  919.       -1,    72,    78,    79,    80,    81,    82,    78,    79,    80,
  920.       81,    82,    72,    -1,    -1,    -1,    -1,    72,    78,    79,
  921.       80,    81,    82,    78,    79,    80,    81,    82,    72,    -1,
  922.       -1,    -1,    -1,    72,    78,    79,    80,    81,    82,    78,
  923.       79,    80,    81,    82,    73,    -1,    -1,    -1,    -1,    78,
  924.       79,    80,    81,    82,    73,    -1,    -1,    -1,    -1,    78,
  925.       79,    80,    81,    82,    73,    -1,    -1,    -1,    -1,    78,
  926.       79,    80,    81,    82,    73,    -1,    -1,    -1,    -1,    78,
  927.       79,    80,    81,    82,    73,    -1,    -1,    -1,    -1,    78,
  928.       79,    80,    81,    82,    73,    -1,    -1,    -1,    -1,    78,
  929.       79,    80,    81,    82,    15,    -1,    -1,    18,    19,    20,
  930.       21,    22,    23,    15,    -1,    -1,    18,    19,    20,    21,
  931.       22,    23
  932. };
  933.  
  934. /* YYSTOS[STATE-NUM] -- The (internal number of the) accessing
  935.    symbol of state STATE-NUM.  */
  936. static const unsigned char yystos[] =
  937. {
  938.        0,     3,     4,     6,     7,     8,     9,    10,    11,    13,
  939.       14,    15,    16,    17,    18,    19,    20,    21,    22,    23,
  940.       24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
  941.       34,    35,    36,    37,    38,    39,    40,    41,    42,    43,
  942.       44,    45,    46,    47,    48,    49,    50,    51,    52,    53,
  943.       54,    55,    56,    57,    58,    59,    60,    61,    62,    63,
  944.       64,    65,    66,    91,    92,    93,    95,    71,    71,    71,
  945.       71,    71,    71,    71,    71,    71,    71,    12,    66,    71,
  946.       77,    79,    83,    88,    96,    97,    98,    99,   100,   101,
  947.      103,   104,   105,    71,    83,    96,    97,    99,   100,   102,
  948.      105,    96,    97,    99,   100,   101,    97,    98,    99,   100,
  949.      101,   103,   104,    97,   100,   102,   105,    97,   100,   101,
  950.       96,    97,    98,    99,   100,   101,   103,   104,    96,    97,
  951.       98,    99,   100,   101,   103,   104,    96,    97,    98,    99,
  952.      100,   101,   103,   104,    96,    97,    98,    99,   100,   101,
  953.      103,   104,    96,    97,    98,    99,   100,   101,   103,   104,
  954.       96,    97,    98,    99,   100,   101,   103,   104,    83,    96,
  955.       97,   100,    96,    97,   100,    97,    97,    97,    97,    97,
  956.       97,    97,    97,    97,    97,    97,    98,   100,   101,   105,
  957.       97,    98,   100,   101,    97,    98,   100,   101,    97,    98,
  958.      100,   101,    97,    98,   100,   101,    97,    98,   100,   101,
  959.       74,    87,     0,    92,    67,     5,    70,    71,   105,   106,
  960.       67,   105,    67,    67,    67,   105,    94,   105,    94,    71,
  961.      105,   105,   105,   105,    73,    78,    79,    80,    81,    82,
  962.      105,   105,    73,   105,    73,   105,    72,    71,   106,   105,
  963.      106,    83,    84,    85,    86,    68,    69,    72,    72,    72,
  964.       72,    72,    72,    73,    73,    72,    73,    72,    67,    72,
  965.       73,    73,    75,    76,   105,   105,   105,   105,   105,    72,
  966.       73,    66,    72,   105,   105,   105,   105,   106,   106,   105,
  967.      105,   105,    73,    73,    75,    75,    76,    72,    72,    73,
  968.       72,   105,    76,    72,   105,    72,    72
  969. };
  970.  
  971. #define yyerrok        (yyerrstatus = 0)
  972. #define yyclearin    (yychar = YYEMPTY)
  973. #define YYEMPTY        (-2)
  974. #define YYEOF        0
  975.  
  976. #define YYACCEPT    goto yyacceptlab
  977. #define YYABORT        goto yyabortlab
  978. #define YYERROR        goto yyerrorlab
  979.  
  980.  
  981. /* Like YYERROR except do call yyerror.  This remains here temporarily
  982.    to ease the transition to the new meaning of YYERROR, for GCC.
  983.    Once GCC version 2 has supplanted version 1, this can go.  */
  984.  
  985. #define YYFAIL        goto yyerrlab
  986.  
  987. #define YYRECOVERING()  (!!yyerrstatus)
  988.  
  989. #define YYBACKUP(Token, Value)                    \
  990. do                                \
  991.   if (yychar == YYEMPTY && yylen == 1)                \
  992.     {                                \
  993.       yychar = (Token);                        \
  994.       yylval = (Value);                        \
  995.       yytoken = YYTRANSLATE (yychar);                \
  996.       YYPOPSTACK;                        \
  997.       goto yybackup;                        \
  998.     }                                \
  999.   else                                \
  1000.     {                                \
  1001.       yyerror (YY_("syntax error: cannot back up")); \
  1002.       YYERROR;                            \
  1003.     }                                \
  1004. while (0)
  1005.  
  1006.  
  1007. #define YYTERROR    1
  1008. #define YYERRCODE    256
  1009.  
  1010.  
  1011. /* YYLLOC_DEFAULT -- Set CURRENT to span from RHS[1] to RHS[N].
  1012.    If N is 0, then set CURRENT to the empty location which ends
  1013.    the previous symbol: RHS[0] (always defined).  */
  1014.  
  1015. #define YYRHSLOC(Rhs, K) ((Rhs)[K])
  1016. #ifndef YYLLOC_DEFAULT
  1017. # define YYLLOC_DEFAULT(Current, Rhs, N)                \
  1018.     do                                    \
  1019.       if (N)                                \
  1020.     {                                \
  1021.       (Current).first_line   = YYRHSLOC (Rhs, 1).first_line;    \
  1022.       (Current).first_column = YYRHSLOC (Rhs, 1).first_column;    \
  1023.       (Current).last_line    = YYRHSLOC (Rhs, N).last_line;        \
  1024.       (Current).last_column  = YYRHSLOC (Rhs, N).last_column;    \
  1025.     }                                \
  1026.       else                                \
  1027.     {                                \
  1028.       (Current).first_line   = (Current).last_line   =        \
  1029.         YYRHSLOC (Rhs, 0).last_line;                \
  1030.       (Current).first_column = (Current).last_column =        \
  1031.         YYRHSLOC (Rhs, 0).last_column;                \
  1032.     }                                \
  1033.     while (0)
  1034. #endif
  1035.  
  1036.  
  1037. /* YY_LOCATION_PRINT -- Print the location on the stream.
  1038.    This macro was not mandated originally: define only if we know
  1039.    we won't break user code: when these are the locations we know.  */
  1040.  
  1041. #ifndef YY_LOCATION_PRINT
  1042. # if YYLTYPE_IS_TRIVIAL
  1043. #  define YY_LOCATION_PRINT(File, Loc)            \
  1044.      fprintf (File, "%d.%d-%d.%d",            \
  1045.               (Loc).first_line, (Loc).first_column,    \
  1046.               (Loc).last_line,  (Loc).last_column)
  1047. # else
  1048. #  define YY_LOCATION_PRINT(File, Loc) ((void) 0)
  1049. # endif
  1050. #endif
  1051.  
  1052.  
  1053. /* YYLEX -- calling `yylex' with the right arguments.  */
  1054.  
  1055. #ifdef YYLEX_PARAM
  1056. # define YYLEX yylex (YYLEX_PARAM)
  1057. #else
  1058. # define YYLEX yylex ()
  1059. #endif
  1060.  
  1061. /* Enable debugging if requested.  */
  1062. #if YYDEBUG
  1063.  
  1064. # ifndef YYFPRINTF
  1065. #  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
  1066. #  define YYFPRINTF fprintf
  1067. # endif
  1068.  
  1069. # define YYDPRINTF(Args)            \
  1070. do {                        \
  1071.   if (yydebug)                    \
  1072.     YYFPRINTF Args;                \
  1073. } while (0)
  1074.  
  1075. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)        \
  1076. do {                                \
  1077.   if (yydebug)                            \
  1078.     {                                \
  1079.       YYFPRINTF (stderr, "%s ", Title);                \
  1080.       yysymprint (stderr,                    \
  1081.                   Type, Value);    \
  1082.       YYFPRINTF (stderr, "\n");                    \
  1083.     }                                \
  1084. } while (0)
  1085.  
  1086. /*------------------------------------------------------------------.
  1087. | yy_stack_print -- Print the state stack from its BOTTOM up to its |
  1088. | TOP (included).                                                   |
  1089. `------------------------------------------------------------------*/
  1090.  
  1091. #if defined (__STDC__) || defined (__cplusplus)
  1092. static void
  1093. yy_stack_print (short int *bottom, short int *top)
  1094. #else
  1095. static void
  1096. yy_stack_print (bottom, top)
  1097.     short int *bottom;
  1098.     short int *top;
  1099. #endif
  1100. {
  1101.   YYFPRINTF (stderr, "Stack now");
  1102.   for (/* Nothing. */; bottom <= top; ++bottom)
  1103.     YYFPRINTF (stderr, " %d", *bottom);
  1104.   YYFPRINTF (stderr, "\n");
  1105. }
  1106.  
  1107. # define YY_STACK_PRINT(Bottom, Top)                \
  1108. do {                                \
  1109.   if (yydebug)                            \
  1110.     yy_stack_print ((Bottom), (Top));                \
  1111. } while (0)
  1112.  
  1113.  
  1114. /*------------------------------------------------.
  1115. | Report that the YYRULE is going to be reduced.  |
  1116. `------------------------------------------------*/
  1117.  
  1118. #if defined (__STDC__) || defined (__cplusplus)
  1119. static void
  1120. yy_reduce_print (int yyrule)
  1121. #else
  1122. static void
  1123. yy_reduce_print (yyrule)
  1124.     int yyrule;
  1125. #endif
  1126. {
  1127.   int yyi;
  1128.   unsigned long int yylno = yyrline[yyrule];
  1129.   YYFPRINTF (stderr, "Reducing stack by rule %d (line %lu), ",
  1130.              yyrule - 1, yylno);
  1131.   /* Print the symbols being reduced, and their result.  */
  1132.   for (yyi = yyprhs[yyrule]; 0 <= yyrhs[yyi]; yyi++)
  1133.     YYFPRINTF (stderr, "%s ", yytname[yyrhs[yyi]]);
  1134.   YYFPRINTF (stderr, "-> %s\n", yytname[yyr1[yyrule]]);
  1135. }
  1136.  
  1137. # define YY_REDUCE_PRINT(Rule)        \
  1138. do {                    \
  1139.   if (yydebug)                \
  1140.     yy_reduce_print (Rule);        \
  1141. } while (0)
  1142.  
  1143. /* Nonzero means print parse trace.  It is left uninitialized so that
  1144.    multiple parsers can coexist.  */
  1145. int yydebug;
  1146. #else /* !YYDEBUG */
  1147. # define YYDPRINTF(Args)
  1148. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  1149. # define YY_STACK_PRINT(Bottom, Top)
  1150. # define YY_REDUCE_PRINT(Rule)
  1151. #endif /* !YYDEBUG */
  1152.  
  1153.  
  1154. /* YYINITDEPTH -- initial size of the parser's stacks.  */
  1155. #ifndef    YYINITDEPTH
  1156. # define YYINITDEPTH 200
  1157. #endif
  1158.  
  1159. /* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
  1160.    if the built-in stack extension method is used).
  1161.  
  1162.    Do not make this value too large; the results are undefined if
  1163.    YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
  1164.    evaluated with infinite-precision integer arithmetic.  */
  1165.  
  1166. #ifndef YYMAXDEPTH
  1167. # define YYMAXDEPTH 10000
  1168. #endif
  1169.  
  1170.  
  1171.  
  1172. #if YYERROR_VERBOSE
  1173.  
  1174. # ifndef yystrlen
  1175. #  if defined (__GLIBC__) && defined (_STRING_H)
  1176. #   define yystrlen strlen
  1177. #  else
  1178. /* Return the length of YYSTR.  */
  1179. static YYSIZE_T
  1180. #   if defined (__STDC__) || defined (__cplusplus)
  1181. yystrlen (const char *yystr)
  1182. #   else
  1183. yystrlen (yystr)
  1184.      const char *yystr;
  1185. #   endif
  1186. {
  1187.   const char *yys = yystr;
  1188.  
  1189.   while (*yys++ != '\0')
  1190.     continue;
  1191.  
  1192.   return yys - yystr - 1;
  1193. }
  1194. #  endif
  1195. # endif
  1196.  
  1197. # ifndef yystpcpy
  1198. #  if defined (__GLIBC__) && defined (_STRING_H) && defined (_GNU_SOURCE)
  1199. #   define yystpcpy stpcpy
  1200. #  else
  1201. /* Copy YYSRC to YYDEST, returning the address of the terminating '\0' in
  1202.    YYDEST.  */
  1203. static char *
  1204. #   if defined (__STDC__) || defined (__cplusplus)
  1205. yystpcpy (char *yydest, const char *yysrc)
  1206. #   else
  1207. yystpcpy (yydest, yysrc)
  1208.      char *yydest;
  1209.      const char *yysrc;
  1210. #   endif
  1211. {
  1212.   char *yyd = yydest;
  1213.   const char *yys = yysrc;
  1214.  
  1215.   while ((*yyd++ = *yys++) != '\0')
  1216.     continue;
  1217.  
  1218.   return yyd - 1;
  1219. }
  1220. #  endif
  1221. # endif
  1222.  
  1223. # ifndef yytnamerr
  1224. /* Copy to YYRES the contents of YYSTR after stripping away unnecessary
  1225.    quotes and backslashes, so that it's suitable for yyerror.  The
  1226.    heuristic is that double-quoting is unnecessary unless the string
  1227.    contains an apostrophe, a comma, or backslash (other than
  1228.    backslash-backslash).  YYSTR is taken from yytname.  If YYRES is
  1229.    null, do not copy; instead, return the length of what the result
  1230.    would have been.  */
  1231. static YYSIZE_T
  1232. yytnamerr (char *yyres, const char *yystr)
  1233. {
  1234.   if (*yystr == '"')
  1235.     {
  1236.       size_t yyn = 0;
  1237.       char const *yyp = yystr;
  1238.  
  1239.       for (;;)
  1240.     switch (*++yyp)
  1241.       {
  1242.       case '\'':
  1243.       case ',':
  1244.         goto do_not_strip_quotes;
  1245.  
  1246.       case '\\':
  1247.         if (*++yyp != '\\')
  1248.           goto do_not_strip_quotes;
  1249.         /* Fall through.  */
  1250.       default:
  1251.         if (yyres)
  1252.           yyres[yyn] = *yyp;
  1253.         yyn++;
  1254.         break;
  1255.  
  1256.       case '"':
  1257.         if (yyres)
  1258.           yyres[yyn] = '\0';
  1259.         return yyn;
  1260.       }
  1261.     do_not_strip_quotes: ;
  1262.     }
  1263.  
  1264.   if (! yyres)
  1265.     return yystrlen (yystr);
  1266.  
  1267.   return yystpcpy (yyres, yystr) - yyres;
  1268. }
  1269. # endif
  1270.  
  1271. #endif /* YYERROR_VERBOSE */
  1272.  
  1273.  
  1274.  
  1275. #if YYDEBUG
  1276. /*--------------------------------.
  1277. | Print this symbol on YYOUTPUT.  |
  1278. `--------------------------------*/
  1279.  
  1280. #if defined (__STDC__) || defined (__cplusplus)
  1281. static void
  1282. yysymprint (FILE *yyoutput, int yytype, YYSTYPE *yyvaluep)
  1283. #else
  1284. static void
  1285. yysymprint (yyoutput, yytype, yyvaluep)
  1286.     FILE *yyoutput;
  1287.     int yytype;
  1288.     YYSTYPE *yyvaluep;
  1289. #endif
  1290. {
  1291.   /* Pacify ``unused variable'' warnings.  */
  1292.   (void) yyvaluep;
  1293.  
  1294.   if (yytype < YYNTOKENS)
  1295.     YYFPRINTF (yyoutput, "token %s (", yytname[yytype]);
  1296.   else
  1297.     YYFPRINTF (yyoutput, "nterm %s (", yytname[yytype]);
  1298.  
  1299.  
  1300. # ifdef YYPRINT
  1301.   if (yytype < YYNTOKENS)
  1302.     YYPRINT (yyoutput, yytoknum[yytype], *yyvaluep);
  1303. # endif
  1304.   switch (yytype)
  1305.     {
  1306.       default:
  1307.         break;
  1308.     }
  1309.   YYFPRINTF (yyoutput, ")");
  1310. }
  1311.  
  1312. #endif /* ! YYDEBUG */
  1313. /*-----------------------------------------------.
  1314. | Release the memory associated to this symbol.  |
  1315. `-----------------------------------------------*/
  1316.  
  1317. #if defined (__STDC__) || defined (__cplusplus)
  1318. static void
  1319. yydestruct (const char *yymsg, int yytype, YYSTYPE *yyvaluep)
  1320. #else
  1321. static void
  1322. yydestruct (yymsg, yytype, yyvaluep)
  1323.     const char *yymsg;
  1324.     int yytype;
  1325.     YYSTYPE *yyvaluep;
  1326. #endif
  1327. {
  1328.   /* Pacify ``unused variable'' warnings.  */
  1329.   (void) yyvaluep;
  1330.  
  1331.   if (!yymsg)
  1332.     yymsg = "Deleting";
  1333.   YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  1334.  
  1335.   switch (yytype)
  1336.     {
  1337.  
  1338.       default:
  1339.         break;
  1340.     }
  1341. }
  1342.  
  1343.  
  1344. /* Prevent warnings from -Wmissing-prototypes.  */
  1345.  
  1346. #ifdef YYPARSE_PARAM
  1347. # if defined (__STDC__) || defined (__cplusplus)
  1348. int yyparse (void *YYPARSE_PARAM);
  1349. # else
  1350. int yyparse ();
  1351. # endif
  1352. #else /* ! YYPARSE_PARAM */
  1353. #if defined (__STDC__) || defined (__cplusplus)
  1354. int yyparse (void);
  1355. #else
  1356. int yyparse ();
  1357. #endif
  1358. #endif /* ! YYPARSE_PARAM */
  1359.  
  1360. void yycleanup();
  1361.  
  1362. /* The look-ahead symbol.  */
  1363. int yychar;
  1364.  
  1365. /* The semantic value of the look-ahead symbol.  */
  1366. YYSTYPE yylval;
  1367.  
  1368. /* Number of syntax errors so far.  */
  1369. int yynerrs;
  1370.  
  1371.  
  1372.  
  1373. /*----------.
  1374. | yyparse.  |
  1375. `----------*/
  1376.  
  1377. #ifdef YYPARSE_PARAM
  1378. # if defined (__STDC__) || defined (__cplusplus)
  1379. int yyparse (void *YYPARSE_PARAM)
  1380. # else
  1381. int yyparse (YYPARSE_PARAM)
  1382.   void *YYPARSE_PARAM;
  1383. # endif
  1384. #else /* ! YYPARSE_PARAM */
  1385. #if defined (__STDC__) || defined (__cplusplus)
  1386. int
  1387. yyparse (void)
  1388. #else
  1389. int
  1390. yyparse ()
  1391.     ;
  1392. #endif
  1393. #endif
  1394. {
  1395.  
  1396.   int yystate;
  1397.   int yyn;
  1398.   int yyresult;
  1399.   /* Number of tokens to shift before error messages enabled.  */
  1400.   int yyerrstatus;
  1401.   /* Look-ahead token as an internal (translated) token number.  */
  1402.   int yytoken = 0;
  1403.  
  1404.   /* Three stacks and their tools:
  1405.      `yyss': related to states,
  1406.      `yyvs': related to semantic values,
  1407.      `yyls': related to locations.
  1408.  
  1409.      Refer to the stacks thru separate pointers, to allow yyoverflow
  1410.      to reallocate them elsewhere.  */
  1411.  
  1412.   /* The state stack.  */
  1413.   short int yyssa[YYINITDEPTH];
  1414.   short int *yyss = yyssa;
  1415.   short int *yyssp;
  1416.  
  1417.   /* The semantic value stack.  */
  1418.   YYSTYPE yyvsa[YYINITDEPTH];
  1419.   YYSTYPE *yyvs = yyvsa;
  1420.   YYSTYPE *yyvsp;
  1421.  
  1422.  
  1423.  
  1424. #define YYPOPSTACK   (yyvsp--, yyssp--)
  1425.  
  1426.   YYSIZE_T yystacksize = YYINITDEPTH;
  1427.  
  1428.   /* The variables used to return semantic value and location from the
  1429.      action routines.  */
  1430.   YYSTYPE yyval;
  1431.  
  1432.  
  1433.   /* When reducing, the number of symbols on the RHS of the reduced
  1434.      rule.  */
  1435.   int yylen;
  1436.  
  1437.   YYDPRINTF ((stderr, "Starting parse\n"));
  1438.  
  1439.   yystate = 0;
  1440.   yyerrstatus = 0;
  1441.   yynerrs = 0;
  1442.   yychar = YYEMPTY;        /* Cause a token to be read.  */
  1443.  
  1444.   /* Initialize stack pointers.
  1445.      Waste one element of value and location stack
  1446.      so that they stay on the same level as the state stack.
  1447.      The wasted elements are never initialized.  */
  1448.  
  1449.   yyssp = yyss;
  1450.   yyvsp = yyvs;
  1451.  
  1452.   goto yysetstate;
  1453.  
  1454. /*------------------------------------------------------------.
  1455. | yynewstate -- Push a new state, which is found in yystate.  |
  1456. `------------------------------------------------------------*/
  1457.  yynewstate:
  1458.   /* In all cases, when you get here, the value and location stacks
  1459.      have just been pushed. so pushing a state here evens the stacks.
  1460.      */
  1461.   yyssp++;
  1462.  
  1463.  yysetstate:
  1464.   *yyssp = yystate;
  1465.  
  1466.   if (yyss + yystacksize - 1 <= yyssp)
  1467.     {
  1468.       /* Get the current used size of the three stacks, in elements.  */
  1469.       YYSIZE_T yysize = yyssp - yyss + 1;
  1470.  
  1471. #ifdef yyoverflow
  1472.       {
  1473.     /* Give user a chance to reallocate the stack. Use copies of
  1474.        these so that the &'s don't force the real ones into
  1475.        memory.  */
  1476.     YYSTYPE *yyvs1 = yyvs;
  1477.     short int *yyss1 = yyss;
  1478.  
  1479.  
  1480.     /* Each stack pointer address is followed by the size of the
  1481.        data in use in that stack, in bytes.  This used to be a
  1482.        conditional around just the two extra args, but that might
  1483.        be undefined if yyoverflow is a macro.  */
  1484.     yyoverflow (YY_("memory exhausted"),
  1485.             &yyss1, yysize * sizeof (*yyssp),
  1486.             &yyvs1, yysize * sizeof (*yyvsp),
  1487.  
  1488.             &yystacksize);
  1489.  
  1490.     yyss = yyss1;
  1491.     yyvs = yyvs1;
  1492.       }
  1493. #else /* no yyoverflow */
  1494. # ifndef YYSTACK_RELOCATE
  1495.       goto yyexhaustedlab;
  1496. # else
  1497.       /* Extend the stack our own way.  */
  1498.       if (YYMAXDEPTH <= yystacksize)
  1499.     goto yyexhaustedlab;
  1500.       yystacksize *= 2;
  1501.       if (YYMAXDEPTH < yystacksize)
  1502.     yystacksize = YYMAXDEPTH;
  1503.  
  1504.       {
  1505.     short int *yyss1 = yyss;
  1506.     union yyalloc *yyptr =
  1507.       (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize));
  1508.     if (! yyptr)
  1509.       goto yyexhaustedlab;
  1510.     YYSTACK_RELOCATE (yyss);
  1511.     YYSTACK_RELOCATE (yyvs);
  1512.  
  1513. #  undef YYSTACK_RELOCATE
  1514.     if (yyss1 != yyssa)
  1515.       YYSTACK_FREE (yyss1);
  1516.       }
  1517. # endif
  1518. #endif /* no yyoverflow */
  1519.  
  1520.       yyssp = yyss + yysize - 1;
  1521.       yyvsp = yyvs + yysize - 1;
  1522.  
  1523.  
  1524.       YYDPRINTF ((stderr, "Stack size increased to %lu\n",
  1525.           (unsigned long int) yystacksize));
  1526.  
  1527.       if (yyss + yystacksize - 1 <= yyssp)
  1528.     YYABORT;
  1529.     }
  1530.  
  1531.   YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  1532.  
  1533.   goto yybackup;
  1534.  
  1535. /*-----------.
  1536. | yybackup.  |
  1537. `-----------*/
  1538. yybackup:
  1539.  
  1540. /* Do appropriate processing given the current state.  */
  1541. /* Read a look-ahead token if we need one and don't already have one.  */
  1542. /* yyresume: */
  1543.  
  1544.   /* First try to decide what to do without reference to look-ahead token.  */
  1545.  
  1546.   yyn = yypact[yystate];
  1547.   if (yyn == YYPACT_NINF)
  1548.     goto yydefault;
  1549.  
  1550.   /* Not known => get a look-ahead token if don't already have one.  */
  1551.  
  1552.   /* YYCHAR is either YYEMPTY or YYEOF or a valid look-ahead symbol.  */
  1553.   if (yychar == YYEMPTY)
  1554.     {
  1555.       YYDPRINTF ((stderr, "Reading a token: "));
  1556.       yychar = YYLEX;
  1557.     }
  1558.  
  1559.   if (yychar <= YYEOF)
  1560.     {
  1561.       yychar = yytoken = YYEOF;
  1562.       YYDPRINTF ((stderr, "Now at end of input.\n"));
  1563.     }
  1564.   else
  1565.     {
  1566.       yytoken = YYTRANSLATE (yychar);
  1567.       YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  1568.     }
  1569.  
  1570.   /* If the proper action on seeing token YYTOKEN is to reduce or to
  1571.      detect an error, take that action.  */
  1572.   yyn += yytoken;
  1573.   if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
  1574.     goto yydefault;
  1575.   yyn = yytable[yyn];
  1576.   if (yyn <= 0)
  1577.     {
  1578.       if (yyn == 0 || yyn == YYTABLE_NINF)
  1579.     goto yyerrlab;
  1580.       yyn = -yyn;
  1581.       goto yyreduce;
  1582.     }
  1583.  
  1584.   if (yyn == YYFINAL)
  1585.     YYACCEPT;
  1586.  
  1587.   /* Shift the look-ahead token.  */
  1588.   YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  1589.  
  1590.   /* Discard the token being shifted unless it is eof.  */
  1591.   if (yychar != YYEOF)
  1592.     yychar = YYEMPTY;
  1593.  
  1594.   *++yyvsp = yylval;
  1595.  
  1596.  
  1597.   /* Count tokens shifted since error; after three, turn off error
  1598.      status.  */
  1599.   if (yyerrstatus)
  1600.     yyerrstatus--;
  1601.  
  1602.   yystate = yyn;
  1603.   goto yynewstate;
  1604.  
  1605.  
  1606. /*-----------------------------------------------------------.
  1607. | yydefault -- do the default action for the current state.  |
  1608. `-----------------------------------------------------------*/
  1609. yydefault:
  1610.   yyn = yydefact[yystate];
  1611.   if (yyn == 0)
  1612.     goto yyerrlab;
  1613.   goto yyreduce;
  1614.  
  1615.  
  1616. /*-----------------------------.
  1617. | yyreduce -- Do a reduction.  |
  1618. `-----------------------------*/
  1619. yyreduce:
  1620.   /* yyn is the number of a rule to reduce with.  */
  1621.   yylen = yyr2[yyn];
  1622.  
  1623.   /* If YYLEN is nonzero, implement the default value of the action:
  1624.      `$$ = $1'.
  1625.  
  1626.      Otherwise, the following line sets YYVAL to garbage.
  1627.      This behavior is undocumented and Bison
  1628.      users should not rely upon it.  Assigning to YYVAL
  1629.      unconditionally makes the parser a bit smaller, and it avoids a
  1630.      GCC warning that YYVAL may be used uninitialized.  */
  1631.   yyval = yyvsp[1-yylen];
  1632.  
  1633.  
  1634.   YY_REDUCE_PRINT (yyn);
  1635.   switch (yyn)
  1636.     {
  1637.         case 4:
  1638. // #line 145 "asm.y"
  1639.     { new_label((yyvsp[-1].str)); ;}
  1640.     break;
  1641.  
  1642.   case 5:
  1643. // #line 146 "asm.y"
  1644.     { new_symbol_expr((yyvsp[-2].str), (yyvsp[0].expr)); ;}
  1645.     break;
  1646.  
  1647.   case 6:
  1648. // #line 147 "asm.y"
  1649.     { push_if_state((yyvsp[-1].expr)); ;}
  1650.     break;
  1651.  
  1652.   case 7:
  1653. // #line 148 "asm.y"
  1654.     { set_org((yyvsp[-1].expr)); ;}
  1655.     break;
  1656.  
  1657.   case 8:
  1658. // #line 149 "asm.y"
  1659.     { asm_error((yyvsp[-1].str)); ;}
  1660.     break;
  1661.  
  1662.   case 9:
  1663. // #line 150 "asm.y"
  1664.     { asm_echo((yyvsp[-1].str)); ;}
  1665.     break;
  1666.  
  1667.   case 10:
  1668. // #line 151 "asm.y"
  1669.     { asm_include((yyvsp[-1].str)); ;}
  1670.     break;
  1671.  
  1672.   case 11:
  1673. // #line 152 "asm.y"
  1674.     { push_macro_state((yyvsp[-1].str)); ;}
  1675.     break;
  1676.  
  1677.   case 12:
  1678. // #line 153 "asm.y"
  1679.     { vec_push(asm_atoms, &(yyvsp[0].atom)); ;}
  1680.     break;
  1681.  
  1682.   case 13:
  1683. // #line 154 "asm.y"
  1684.     { macro_append((yyvsp[0].str)) ;}
  1685.     break;
  1686.  
  1687.   case 14:
  1688. // #line 156 "asm.y"
  1689.     { (yyval.atom) = (yyvsp[0].atom);}
  1690.     break;
  1691.  
  1692.   case 15:
  1693. // #line 157 "asm.y"
  1694.     { (yyval.atom) = new_res((yyvsp[-3].expr), (yyvsp[-1].expr)); ;}
  1695.     break;
  1696.  
  1697.   case 16:
  1698. // #line 158 "asm.y"
  1699.     { (yyval.atom) = exprs_to_word_exprs((yyvsp[-1].atom)); ;}
  1700.     break;
  1701.  
  1702.   case 17:
  1703. // #line 159 "asm.y"
  1704.     { (yyval.atom) = exprs_to_byte_exprs((yyvsp[-1].atom)); ;}
  1705.     break;
  1706.  
  1707.   case 18:
  1708. // #line 160 "asm.y"
  1709.     {
  1710.             (yyval.atom) = new_incbin((yyvsp[-1].str), NULL, NULL); ;}
  1711.     break;
  1712.  
  1713.   case 19:
  1714. // #line 162 "asm.y"
  1715.     {
  1716.             (yyval.atom) = new_incbin((yyvsp[-3].str), (yyvsp[-1].expr), NULL); ;}
  1717.     break;
  1718.  
  1719.   case 20:
  1720. // #line 164 "asm.y"
  1721.     {
  1722.             (yyval.atom) = new_incbin((yyvsp[-5].str), (yyvsp[-3].expr), (yyvsp[-1].expr)); ;}
  1723.     break;
  1724.  
  1725.   case 21:
  1726. // #line 167 "asm.y"
  1727.     { (yyval.atom) = exprs_add((yyvsp[-2].atom), (yyvsp[0].expr)); ;}
  1728.     break;
  1729.  
  1730.   case 22:
  1731. // #line 168 "asm.y"
  1732.     { (yyval.atom) = new_exprs((yyvsp[0].expr)); ;}
  1733.     break;
  1734.  
  1735.   case 23:
  1736. // #line 170 "asm.y"
  1737.     { (yyval.atom) = new_op(0xA9, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  1738.     break;
  1739.  
  1740.   case 24:
  1741. // #line 171 "asm.y"
  1742.     { (yyval.atom) = new_op(0xA5, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1743.     break;
  1744.  
  1745.   case 25:
  1746. // #line 172 "asm.y"
  1747.     { (yyval.atom) = new_op(0xB5, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1748.     break;
  1749.  
  1750.   case 26:
  1751. // #line 173 "asm.y"
  1752.     { (yyval.atom) = new_op(0xAD, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1753.     break;
  1754.  
  1755.   case 27:
  1756. // #line 174 "asm.y"
  1757.     { (yyval.atom) = new_op(0xBD, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1758.     break;
  1759.  
  1760.   case 28:
  1761. // #line 175 "asm.y"
  1762.     { (yyval.atom) = new_op(0xB9, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1763.     break;
  1764.  
  1765.   case 29:
  1766. // #line 176 "asm.y"
  1767.     { (yyval.atom) = new_op(0xA1, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1768.     break;
  1769.  
  1770.   case 30:
  1771. // #line 177 "asm.y"
  1772.     { (yyval.atom) = new_op(0xB1, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1773.     break;
  1774.  
  1775.   case 31:
  1776. // #line 179 "asm.y"
  1777.     { (yyval.atom) = new_op(0xA2, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  1778.     break;
  1779.  
  1780.   case 32:
  1781. // #line 180 "asm.y"
  1782.     { (yyval.atom) = new_op(0xA6, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1783.     break;
  1784.  
  1785.   case 33:
  1786. // #line 181 "asm.y"
  1787.     { (yyval.atom) = new_op(0xB6, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1788.     break;
  1789.  
  1790.   case 34:
  1791. // #line 182 "asm.y"
  1792.     { (yyval.atom) = new_op(0xAE, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1793.     break;
  1794.  
  1795.   case 35:
  1796. // #line 183 "asm.y"
  1797.     { (yyval.atom) = new_op(0xBE, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1798.     break;
  1799.  
  1800.   case 36:
  1801. // #line 185 "asm.y"
  1802.     { (yyval.atom) = new_op(0xA0, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  1803.     break;
  1804.  
  1805.   case 37:
  1806. // #line 186 "asm.y"
  1807.     { (yyval.atom) = new_op(0xA4, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1808.     break;
  1809.  
  1810.   case 38:
  1811. // #line 187 "asm.y"
  1812.     { (yyval.atom) = new_op(0xB4, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1813.     break;
  1814.  
  1815.   case 39:
  1816. // #line 188 "asm.y"
  1817.     { (yyval.atom) = new_op(0xAC, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1818.     break;
  1819.  
  1820.   case 40:
  1821. // #line 189 "asm.y"
  1822.     { (yyval.atom) = new_op(0xBC, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1823.     break;
  1824.  
  1825.   case 41:
  1826. // #line 191 "asm.y"
  1827.     { (yyval.atom) = new_op(0x85, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1828.     break;
  1829.  
  1830.   case 42:
  1831. // #line 192 "asm.y"
  1832.     { (yyval.atom) = new_op(0x95, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1833.     break;
  1834.  
  1835.   case 43:
  1836. // #line 193 "asm.y"
  1837.     { (yyval.atom) = new_op(0x8D, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1838.     break;
  1839.  
  1840.   case 44:
  1841. // #line 194 "asm.y"
  1842.     { (yyval.atom) = new_op(0x9D, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1843.     break;
  1844.  
  1845.   case 45:
  1846. // #line 195 "asm.y"
  1847.     { (yyval.atom) = new_op(0x99, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1848.     break;
  1849.  
  1850.   case 46:
  1851. // #line 196 "asm.y"
  1852.     { (yyval.atom) = new_op(0x81, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1853.     break;
  1854.  
  1855.   case 47:
  1856. // #line 197 "asm.y"
  1857.     { (yyval.atom) = new_op(0x91, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1858.     break;
  1859.  
  1860.   case 48:
  1861. // #line 199 "asm.y"
  1862.     { (yyval.atom) = new_op(0x86, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1863.     break;
  1864.  
  1865.   case 49:
  1866. // #line 200 "asm.y"
  1867.     { (yyval.atom) = new_op(0x96, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1868.     break;
  1869.  
  1870.   case 50:
  1871. // #line 201 "asm.y"
  1872.     { (yyval.atom) = new_op(0x8e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1873.     break;
  1874.  
  1875.   case 51:
  1876. // #line 203 "asm.y"
  1877.     { (yyval.atom) = new_op(0x84, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1878.     break;
  1879.  
  1880.   case 52:
  1881. // #line 204 "asm.y"
  1882.     { (yyval.atom) = new_op(0x94, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1883.     break;
  1884.  
  1885.   case 53:
  1886. // #line 205 "asm.y"
  1887.     { (yyval.atom) = new_op(0x8c, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1888.     break;
  1889.  
  1890.   case 54:
  1891. // #line 207 "asm.y"
  1892.     { (yyval.atom) = new_op(0x29, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  1893.     break;
  1894.  
  1895.   case 55:
  1896. // #line 208 "asm.y"
  1897.     { (yyval.atom) = new_op(0x25, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1898.     break;
  1899.  
  1900.   case 56:
  1901. // #line 209 "asm.y"
  1902.     { (yyval.atom) = new_op(0x35, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1903.     break;
  1904.  
  1905.   case 57:
  1906. // #line 210 "asm.y"
  1907.     { (yyval.atom) = new_op(0x2d, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1908.     break;
  1909.  
  1910.   case 58:
  1911. // #line 211 "asm.y"
  1912.     { (yyval.atom) = new_op(0x3d, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1913.     break;
  1914.  
  1915.   case 59:
  1916. // #line 212 "asm.y"
  1917.     { (yyval.atom) = new_op(0x39, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1918.     break;
  1919.  
  1920.   case 60:
  1921. // #line 213 "asm.y"
  1922.     { (yyval.atom) = new_op(0x21, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1923.     break;
  1924.  
  1925.   case 61:
  1926. // #line 214 "asm.y"
  1927.     { (yyval.atom) = new_op(0x31, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1928.     break;
  1929.  
  1930.   case 62:
  1931. // #line 216 "asm.y"
  1932.     { (yyval.atom) = new_op(0x09, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  1933.     break;
  1934.  
  1935.   case 63:
  1936. // #line 217 "asm.y"
  1937.     { (yyval.atom) = new_op(0x05, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1938.     break;
  1939.  
  1940.   case 64:
  1941. // #line 218 "asm.y"
  1942.     { (yyval.atom) = new_op(0x15, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1943.     break;
  1944.  
  1945.   case 65:
  1946. // #line 219 "asm.y"
  1947.     { (yyval.atom) = new_op(0x0d, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1948.     break;
  1949.  
  1950.   case 66:
  1951. // #line 220 "asm.y"
  1952.     { (yyval.atom) = new_op(0x1d, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1953.     break;
  1954.  
  1955.   case 67:
  1956. // #line 221 "asm.y"
  1957.     { (yyval.atom) = new_op(0x19, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1958.     break;
  1959.  
  1960.   case 68:
  1961. // #line 222 "asm.y"
  1962.     { (yyval.atom) = new_op(0x01, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1963.     break;
  1964.  
  1965.   case 69:
  1966. // #line 223 "asm.y"
  1967.     { (yyval.atom) = new_op(0x11, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1968.     break;
  1969.  
  1970.   case 70:
  1971. // #line 225 "asm.y"
  1972.     { (yyval.atom) = new_op(0x49, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  1973.     break;
  1974.  
  1975.   case 71:
  1976. // #line 226 "asm.y"
  1977.     { (yyval.atom) = new_op(0x45, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  1978.     break;
  1979.  
  1980.   case 72:
  1981. // #line 227 "asm.y"
  1982.     { (yyval.atom) = new_op(0x55, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  1983.     break;
  1984.  
  1985.   case 73:
  1986. // #line 228 "asm.y"
  1987.     { (yyval.atom) = new_op(0x4d, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1988.     break;
  1989.  
  1990.   case 74:
  1991. // #line 229 "asm.y"
  1992.     { (yyval.atom) = new_op(0x5d, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1993.     break;
  1994.  
  1995.   case 75:
  1996. // #line 230 "asm.y"
  1997.     { (yyval.atom) = new_op(0x59, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  1998.     break;
  1999.  
  2000.   case 76:
  2001. // #line 231 "asm.y"
  2002.     { (yyval.atom) = new_op(0x41, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2003.     break;
  2004.  
  2005.   case 77:
  2006. // #line 232 "asm.y"
  2007.     { (yyval.atom) = new_op(0x51, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2008.     break;
  2009.  
  2010.   case 78:
  2011. // #line 234 "asm.y"
  2012.     { (yyval.atom) = new_op(0x69, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  2013.     break;
  2014.  
  2015.   case 79:
  2016. // #line 235 "asm.y"
  2017.     { (yyval.atom) = new_op(0x65, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  2018.     break;
  2019.  
  2020.   case 80:
  2021. // #line 236 "asm.y"
  2022.     { (yyval.atom) = new_op(0x75, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2023.     break;
  2024.  
  2025.   case 81:
  2026. // #line 237 "asm.y"
  2027.     { (yyval.atom) = new_op(0x6D, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2028.     break;
  2029.  
  2030.   case 82:
  2031. // #line 238 "asm.y"
  2032.     { (yyval.atom) = new_op(0x7D, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2033.     break;
  2034.  
  2035.   case 83:
  2036. // #line 239 "asm.y"
  2037.     { (yyval.atom) = new_op(0x79, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2038.     break;
  2039.  
  2040.   case 84:
  2041. // #line 240 "asm.y"
  2042.     { (yyval.atom) = new_op(0x61, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2043.     break;
  2044.  
  2045.   case 85:
  2046. // #line 241 "asm.y"
  2047.     { (yyval.atom) = new_op(0x71, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2048.     break;
  2049.  
  2050.   case 86:
  2051. // #line 243 "asm.y"
  2052.     { (yyval.atom) = new_op(0xe9, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  2053.     break;
  2054.  
  2055.   case 87:
  2056. // #line 244 "asm.y"
  2057.     { (yyval.atom) = new_op(0xe5, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  2058.     break;
  2059.  
  2060.   case 88:
  2061. // #line 245 "asm.y"
  2062.     { (yyval.atom) = new_op(0xf5, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2063.     break;
  2064.  
  2065.   case 89:
  2066. // #line 246 "asm.y"
  2067.     { (yyval.atom) = new_op(0xeD, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2068.     break;
  2069.  
  2070.   case 90:
  2071. // #line 247 "asm.y"
  2072.     { (yyval.atom) = new_op(0xfD, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2073.     break;
  2074.  
  2075.   case 91:
  2076. // #line 248 "asm.y"
  2077.     { (yyval.atom) = new_op(0xf9, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2078.     break;
  2079.  
  2080.   case 92:
  2081. // #line 249 "asm.y"
  2082.     { (yyval.atom) = new_op(0xe1, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2083.     break;
  2084.  
  2085.   case 93:
  2086. // #line 250 "asm.y"
  2087.     { (yyval.atom) = new_op(0xf1, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2088.     break;
  2089.  
  2090.   case 94:
  2091. // #line 252 "asm.y"
  2092.     { (yyval.atom) = new_op(0xc9, ATOM_TYPE_OP_ARG_UI8, (yyvsp[0].expr)); ;}
  2093.     break;
  2094.  
  2095.   case 95:
  2096. // #line 253 "asm.y"
  2097.     { (yyval.atom) = new_op(0xc5, ATOM_TYPE_OP_ARG_U8,  (yyvsp[0].expr)); ;}
  2098.     break;
  2099.  
  2100.   case 96:
  2101. // #line 254 "asm.y"
  2102.     { (yyval.atom) = new_op(0xd5, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2103.     break;
  2104.  
  2105.   case 97:
  2106. // #line 255 "asm.y"
  2107.     { (yyval.atom) = new_op(0xcD, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2108.     break;
  2109.  
  2110.   case 98:
  2111. // #line 256 "asm.y"
  2112.     { (yyval.atom) = new_op(0xdD, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2113.     break;
  2114.  
  2115.   case 99:
  2116. // #line 257 "asm.y"
  2117.     { (yyval.atom) = new_op(0xd9, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2118.     break;
  2119.  
  2120.   case 100:
  2121. // #line 258 "asm.y"
  2122.     { (yyval.atom) = new_op(0xc1, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2123.     break;
  2124.  
  2125.   case 101:
  2126. // #line 259 "asm.y"
  2127.     { (yyval.atom) = new_op(0xd1, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2128.     break;
  2129.  
  2130.   case 102:
  2131. // #line 261 "asm.y"
  2132.     { (yyval.atom) = new_op(0xe0, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2133.     break;
  2134.  
  2135.   case 103:
  2136. // #line 262 "asm.y"
  2137.     { (yyval.atom) = new_op(0xe4, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2138.     break;
  2139.  
  2140.   case 104:
  2141. // #line 263 "asm.y"
  2142.     { (yyval.atom) = new_op(0xec, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2143.     break;
  2144.  
  2145.   case 105:
  2146. // #line 264 "asm.y"
  2147.     { (yyval.atom) = new_op(0xc0, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2148.     break;
  2149.  
  2150.   case 106:
  2151. // #line 265 "asm.y"
  2152.     { (yyval.atom) = new_op(0xc4, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2153.     break;
  2154.  
  2155.   case 107:
  2156. // #line 266 "asm.y"
  2157.     { (yyval.atom) = new_op(0xcc, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2158.     break;
  2159.  
  2160.   case 108:
  2161. // #line 268 "asm.y"
  2162.     { (yyval.atom) = new_op0(0x9A); ;}
  2163.     break;
  2164.  
  2165.   case 109:
  2166. // #line 269 "asm.y"
  2167.     { (yyval.atom) = new_op0(0xBA); ;}
  2168.     break;
  2169.  
  2170.   case 110:
  2171. // #line 270 "asm.y"
  2172.     { (yyval.atom) = new_op0(0x48); ;}
  2173.     break;
  2174.  
  2175.   case 111:
  2176. // #line 271 "asm.y"
  2177.     { (yyval.atom) = new_op0(0x68); ;}
  2178.     break;
  2179.  
  2180.   case 112:
  2181. // #line 272 "asm.y"
  2182.     { (yyval.atom) = new_op0(0x08); ;}
  2183.     break;
  2184.  
  2185.   case 113:
  2186. // #line 273 "asm.y"
  2187.     { (yyval.atom) = new_op0(0x28); ;}
  2188.     break;
  2189.  
  2190.   case 114:
  2191. // #line 274 "asm.y"
  2192.     { (yyval.atom) = new_op0(0x78); ;}
  2193.     break;
  2194.  
  2195.   case 115:
  2196. // #line 275 "asm.y"
  2197.     { (yyval.atom) = new_op0(0x58); ;}
  2198.     break;
  2199.  
  2200.   case 116:
  2201. // #line 276 "asm.y"
  2202.     { (yyval.atom) = new_op0(0xea); ;}
  2203.     break;
  2204.  
  2205.   case 117:
  2206. // #line 277 "asm.y"
  2207.     { (yyval.atom) = new_op0(0x98); ;}
  2208.     break;
  2209.  
  2210.   case 118:
  2211. // #line 278 "asm.y"
  2212.     { (yyval.atom) = new_op0(0xa8); ;}
  2213.     break;
  2214.  
  2215.   case 119:
  2216. // #line 279 "asm.y"
  2217.     { (yyval.atom) = new_op0(0x8a); ;}
  2218.     break;
  2219.  
  2220.   case 120:
  2221. // #line 280 "asm.y"
  2222.     { (yyval.atom) = new_op0(0xaa); ;}
  2223.     break;
  2224.  
  2225.   case 121:
  2226. // #line 281 "asm.y"
  2227.     { (yyval.atom) = new_op0(0x18); ;}
  2228.     break;
  2229.  
  2230.   case 122:
  2231. // #line 282 "asm.y"
  2232.     { (yyval.atom) = new_op0(0x38); ;}
  2233.     break;
  2234.  
  2235.   case 123:
  2236. // #line 283 "asm.y"
  2237.     { (yyval.atom) = new_op0(0x60); ;}
  2238.     break;
  2239.  
  2240.   case 124:
  2241. // #line 285 "asm.y"
  2242.     { (yyval.atom) = new_op(0x20, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2243.     break;
  2244.  
  2245.   case 125:
  2246. // #line 286 "asm.y"
  2247.     { (yyval.atom) = new_op(0x4c, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2248.     break;
  2249.  
  2250.   case 126:
  2251. // #line 287 "asm.y"
  2252.     { (yyval.atom) = new_op(0xf0, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2253.     break;
  2254.  
  2255.   case 127:
  2256. // #line 288 "asm.y"
  2257.     { (yyval.atom) = new_op(0xd0, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2258.     break;
  2259.  
  2260.   case 128:
  2261. // #line 289 "asm.y"
  2262.     { (yyval.atom) = new_op(0x90, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2263.     break;
  2264.  
  2265.   case 129:
  2266. // #line 290 "asm.y"
  2267.     { (yyval.atom) = new_op(0xb0, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2268.     break;
  2269.  
  2270.   case 130:
  2271. // #line 291 "asm.y"
  2272.     { (yyval.atom) = new_op(0x10, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2273.     break;
  2274.  
  2275.   case 131:
  2276. // #line 292 "asm.y"
  2277.     { (yyval.atom) = new_op(0x30, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2278.     break;
  2279.  
  2280.   case 132:
  2281. // #line 293 "asm.y"
  2282.     { (yyval.atom) = new_op(0x50, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2283.     break;
  2284.  
  2285.   case 133:
  2286. // #line 294 "asm.y"
  2287.     { (yyval.atom) = new_op(0x70, ATOM_TYPE_OP_ARG_I8,  (yyvsp[0].expr)); ;}
  2288.     break;
  2289.  
  2290.   case 134:
  2291. // #line 296 "asm.y"
  2292.     { (yyval.atom) = new_op0(0xe8); ;}
  2293.     break;
  2294.  
  2295.   case 135:
  2296. // #line 297 "asm.y"
  2297.     { (yyval.atom) = new_op0(0xca); ;}
  2298.     break;
  2299.  
  2300.   case 136:
  2301. // #line 298 "asm.y"
  2302.     { (yyval.atom) = new_op0(0xc8); ;}
  2303.     break;
  2304.  
  2305.   case 137:
  2306. // #line 299 "asm.y"
  2307.     { (yyval.atom) = new_op0(0x88); ;}
  2308.     break;
  2309.  
  2310.   case 138:
  2311. // #line 301 "asm.y"
  2312.     { (yyval.atom) = new_op(0xe6, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2313.     break;
  2314.  
  2315.   case 139:
  2316. // #line 302 "asm.y"
  2317.     { (yyval.atom) = new_op(0xf6, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2318.     break;
  2319.  
  2320.   case 140:
  2321. // #line 303 "asm.y"
  2322.     { (yyval.atom) = new_op(0xee, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2323.     break;
  2324.  
  2325.   case 141:
  2326. // #line 304 "asm.y"
  2327.     { (yyval.atom) = new_op(0xfe, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2328.     break;
  2329.  
  2330.   case 142:
  2331. // #line 306 "asm.y"
  2332.     { (yyval.atom) = new_op(0xc6, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2333.     break;
  2334.  
  2335.   case 143:
  2336. // #line 307 "asm.y"
  2337.     { (yyval.atom) = new_op(0xd6, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2338.     break;
  2339.  
  2340.   case 144:
  2341. // #line 308 "asm.y"
  2342.     { (yyval.atom) = new_op(0xce, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2343.     break;
  2344.  
  2345.   case 145:
  2346. // #line 309 "asm.y"
  2347.     { (yyval.atom) = new_op(0xde, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2348.     break;
  2349.  
  2350.   case 146:
  2351. // #line 311 "asm.y"
  2352.     { (yyval.atom) = new_op0(0x4a); ;}
  2353.     break;
  2354.  
  2355.   case 147:
  2356. // #line 312 "asm.y"
  2357.     { (yyval.atom) = new_op(0x46, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2358.     break;
  2359.  
  2360.   case 148:
  2361. // #line 313 "asm.y"
  2362.     { (yyval.atom) = new_op(0x56, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2363.     break;
  2364.  
  2365.   case 149:
  2366. // #line 314 "asm.y"
  2367.     { (yyval.atom) = new_op(0x4e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2368.     break;
  2369.  
  2370.   case 150:
  2371. // #line 315 "asm.y"
  2372.     { (yyval.atom) = new_op(0x5e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2373.     break;
  2374.  
  2375.   case 151:
  2376. // #line 317 "asm.y"
  2377.     { (yyval.atom) = new_op0(0x0a); ;}
  2378.     break;
  2379.  
  2380.   case 152:
  2381. // #line 318 "asm.y"
  2382.     { (yyval.atom) = new_op(0x06, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2383.     break;
  2384.  
  2385.   case 153:
  2386. // #line 319 "asm.y"
  2387.     { (yyval.atom) = new_op(0x16, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2388.     break;
  2389.  
  2390.   case 154:
  2391. // #line 320 "asm.y"
  2392.     { (yyval.atom) = new_op(0x0e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2393.     break;
  2394.  
  2395.   case 155:
  2396. // #line 321 "asm.y"
  2397.     { (yyval.atom) = new_op(0x1e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2398.     break;
  2399.  
  2400.   case 156:
  2401. // #line 323 "asm.y"
  2402.     { (yyval.atom) = new_op0(0x6a); ;}
  2403.     break;
  2404.  
  2405.   case 157:
  2406. // #line 324 "asm.y"
  2407.     { (yyval.atom) = new_op(0x66, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2408.     break;
  2409.  
  2410.   case 158:
  2411. // #line 325 "asm.y"
  2412.     { (yyval.atom) = new_op(0x76, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2413.     break;
  2414.  
  2415.   case 159:
  2416. // #line 326 "asm.y"
  2417.     { (yyval.atom) = new_op(0x6e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2418.     break;
  2419.  
  2420.   case 160:
  2421. // #line 327 "asm.y"
  2422.     { (yyval.atom) = new_op(0x7e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2423.     break;
  2424.  
  2425.   case 161:
  2426. // #line 329 "asm.y"
  2427.     { (yyval.atom) = new_op0(0x2a); ;}
  2428.     break;
  2429.  
  2430.   case 162:
  2431. // #line 330 "asm.y"
  2432.     { (yyval.atom) = new_op(0x26, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2433.     break;
  2434.  
  2435.   case 163:
  2436. // #line 331 "asm.y"
  2437.     { (yyval.atom) = new_op(0x36, ATOM_TYPE_OP_ARG_U8, (yyvsp[0].expr)); ;}
  2438.     break;
  2439.  
  2440.   case 164:
  2441. // #line 332 "asm.y"
  2442.     { (yyval.atom) = new_op(0x2e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2443.     break;
  2444.  
  2445.   case 165:
  2446. // #line 333 "asm.y"
  2447.     { (yyval.atom) = new_op(0x3e, ATOM_TYPE_OP_ARG_U16, (yyvsp[0].expr)); ;}
  2448.     break;
  2449.  
  2450.   case 166:
  2451. // #line 335 "asm.y"
  2452.     { (yyval.expr) = (yyvsp[0].expr); ;}
  2453.     break;
  2454.  
  2455.   case 167:
  2456. // #line 336 "asm.y"
  2457.     { (yyval.expr) = (yyvsp[0].expr); ;}
  2458.     break;
  2459.  
  2460.   case 168:
  2461. // #line 337 "asm.y"
  2462.     { (yyval.expr) = (yyvsp[-2].expr); ;}
  2463.     break;
  2464.  
  2465.   case 169:
  2466. // #line 338 "asm.y"
  2467.     { (yyval.expr) = (yyvsp[-2].expr); ;}
  2468.     break;
  2469.  
  2470.   case 170:
  2471. // #line 339 "asm.y"
  2472.     { (yyval.expr) = (yyvsp[0].expr); ;}
  2473.     break;
  2474.  
  2475.   case 171:
  2476. // #line 340 "asm.y"
  2477.     { (yyval.expr) = (yyvsp[-2].expr); ;}
  2478.     break;
  2479.  
  2480.   case 172:
  2481. // #line 341 "asm.y"
  2482.     { (yyval.expr) = (yyvsp[-2].expr); ;}
  2483.     break;
  2484.  
  2485.   case 173:
  2486. // #line 342 "asm.y"
  2487.     { (yyval.expr) = (yyvsp[-3].expr); ;}
  2488.     break;
  2489.  
  2490.   case 174:
  2491. // #line 343 "asm.y"
  2492.     { (yyval.expr) = (yyvsp[-3].expr); ;}
  2493.     break;
  2494.  
  2495.   case 175:
  2496. // #line 345 "asm.y"
  2497.     { (yyval.expr) = new_expr_op2(PLUS, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2498.     break;
  2499.  
  2500.   case 176:
  2501. // #line 346 "asm.y"
  2502.     { (yyval.expr) = new_expr_op2(MINUS, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2503.     break;
  2504.  
  2505.   case 177:
  2506. // #line 347 "asm.y"
  2507.     { (yyval.expr) = new_expr_op2(MULT, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2508.     break;
  2509.  
  2510.   case 178:
  2511. // #line 348 "asm.y"
  2512.     { (yyval.expr) = new_expr_op2(DIV, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2513.     break;
  2514.  
  2515.   case 179:
  2516. // #line 349 "asm.y"
  2517.     { (yyval.expr) = new_expr_op2(MOD, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2518.     break;
  2519.  
  2520.   case 180:
  2521. // #line 350 "asm.y"
  2522.     { (yyval.expr) = new_expr_op1(vNEG, (yyvsp[0].expr)); ;}
  2523.     break;
  2524.  
  2525.   case 181:
  2526. // #line 351 "asm.y"
  2527.     { (yyval.expr) = (yyvsp[-1].expr); ;}
  2528.     break;
  2529.  
  2530.   case 182:
  2531. // #line 352 "asm.y"
  2532.     {
  2533.             (yyval.expr) = new_expr_incword((yyvsp[-3].str), (yyvsp[-1].expr)); ;}
  2534.     break;
  2535.  
  2536.   case 183:
  2537. // #line 354 "asm.y"
  2538.     { (yyval.expr) = new_expr_number((yyvsp[0].num)); ;}
  2539.     break;
  2540.  
  2541.   case 184:
  2542. // #line 355 "asm.y"
  2543.     { (yyval.expr) = new_expr_symref((yyvsp[0].str)); ;}
  2544.     break;
  2545.  
  2546.   case 185:
  2547. // #line 357 "asm.y"
  2548.     { (yyval.expr) = new_expr_op2(LOR, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2549.     break;
  2550.  
  2551.   case 186:
  2552. // #line 358 "asm.y"
  2553.     { (yyval.expr) = new_expr_op2(LAND, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2554.     break;
  2555.  
  2556.   case 187:
  2557. // #line 359 "asm.y"
  2558.     { (yyval.expr) = new_expr_op1(LNOT, (yyvsp[0].expr)); ;}
  2559.     break;
  2560.  
  2561.   case 188:
  2562. // #line 360 "asm.y"
  2563.     { (yyval.expr) = (yyvsp[-1].expr); ;}
  2564.     break;
  2565.  
  2566.   case 189:
  2567. // #line 361 "asm.y"
  2568.     { (yyval.expr) = new_expr_op2(LT, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2569.     break;
  2570.  
  2571.   case 190:
  2572. // #line 362 "asm.y"
  2573.     { (yyval.expr) = new_expr_op2(GT, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2574.     break;
  2575.  
  2576.   case 191:
  2577. // #line 363 "asm.y"
  2578.     { (yyval.expr) = new_expr_op2(EQ, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2579.     break;
  2580.  
  2581.   case 192:
  2582. // #line 364 "asm.y"
  2583.     { (yyval.expr) = new_expr_op2(NEQ, (yyvsp[-2].expr), (yyvsp[0].expr)); ;}
  2584.     break;
  2585.  
  2586.   case 193:
  2587. // #line 366 "asm.y"
  2588.     { (yyval.expr) = new_is_defined((yyvsp[-1].str)); ;}
  2589.     break;
  2590.  
  2591.  
  2592.       default: break;
  2593.     }
  2594.  
  2595. /* Line 1126 of yacc.c.  */
  2596. // #line 2596 "asm.tab.c"
  2597.  
  2598.   yyvsp -= yylen;
  2599.   yyssp -= yylen;
  2600.  
  2601.  
  2602.   YY_STACK_PRINT (yyss, yyssp);
  2603.  
  2604.   *++yyvsp = yyval;
  2605.  
  2606.  
  2607.   /* Now `shift' the result of the reduction.  Determine what state
  2608.      that goes to, based on the state we popped back to and the rule
  2609.      number reduced by.  */
  2610.  
  2611.   yyn = yyr1[yyn];
  2612.  
  2613.   yystate = yypgoto[yyn - YYNTOKENS] + *yyssp;
  2614.   if (0 <= yystate && yystate <= YYLAST && yycheck[yystate] == *yyssp)
  2615.     yystate = yytable[yystate];
  2616.   else
  2617.     yystate = yydefgoto[yyn - YYNTOKENS];
  2618.  
  2619.   goto yynewstate;
  2620.  
  2621.  
  2622. /*------------------------------------.
  2623. | yyerrlab -- here on detecting error |
  2624. `------------------------------------*/
  2625. yyerrlab:
  2626.   /* If not already recovering from an error, report this error.  */
  2627.   if (!yyerrstatus)
  2628.     {
  2629.       ++yynerrs;
  2630. #if YYERROR_VERBOSE
  2631.       yyn = yypact[yystate];
  2632.  
  2633.       if (YYPACT_NINF < yyn && yyn < YYLAST)
  2634.     {
  2635.       int yytype = YYTRANSLATE (yychar);
  2636.       YYSIZE_T yysize0 = yytnamerr (0, yytname[yytype]);
  2637.       YYSIZE_T yysize = yysize0;
  2638.       YYSIZE_T yysize1;
  2639.       int yysize_overflow = 0;
  2640.       char *yymsg = 0;
  2641. #      define YYERROR_VERBOSE_ARGS_MAXIMUM 5
  2642.       char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
  2643.       int yyx;
  2644.  
  2645. #if 0
  2646.       /* This is so xgettext sees the translatable formats that are
  2647.          constructed on the fly.  */
  2648.       YY_("syntax error, unexpected %s");
  2649.       YY_("syntax error, unexpected %s, expecting %s");
  2650.       YY_("syntax error, unexpected %s, expecting %s or %s");
  2651.       YY_("syntax error, unexpected %s, expecting %s or %s or %s");
  2652.       YY_("syntax error, unexpected %s, expecting %s or %s or %s or %s");
  2653. #endif
  2654.       char *yyfmt;
  2655.       char const *yyf;
  2656.       static char const yyunexpected[] = "syntax error, unexpected %s";
  2657.       static char const yyexpecting[] = ", expecting %s";
  2658.       static char const yyor[] = " or %s";
  2659.       char yyformat[sizeof yyunexpected
  2660.             + sizeof yyexpecting - 1
  2661.             + ((YYERROR_VERBOSE_ARGS_MAXIMUM - 2)
  2662.                * (sizeof yyor - 1))];
  2663.       char const *yyprefix = yyexpecting;
  2664.  
  2665.       /* Start YYX at -YYN if negative to avoid negative indexes in
  2666.          YYCHECK.  */
  2667.       int yyxbegin = yyn < 0 ? -yyn : 0;
  2668.  
  2669.       /* Stay within bounds of both yycheck and yytname.  */
  2670.       int yychecklim = YYLAST - yyn;
  2671.       int yyxend = yychecklim < YYNTOKENS ? yychecklim : YYNTOKENS;
  2672.       int yycount = 1;
  2673.  
  2674.       yyarg[0] = yytname[yytype];
  2675.       yyfmt = yystpcpy (yyformat, yyunexpected);
  2676.  
  2677.       for (yyx = yyxbegin; yyx < yyxend; ++yyx)
  2678.         if (yycheck[yyx + yyn] == yyx && yyx != YYTERROR)
  2679.           {
  2680.         if (yycount == YYERROR_VERBOSE_ARGS_MAXIMUM)
  2681.           {
  2682.             yycount = 1;
  2683.             yysize = yysize0;
  2684.             yyformat[sizeof yyunexpected - 1] = '\0';
  2685.             break;
  2686.           }
  2687.         yyarg[yycount++] = yytname[yyx];
  2688.         yysize1 = yysize + yytnamerr (0, yytname[yyx]);
  2689.         yysize_overflow |= yysize1 < yysize;
  2690.         yysize = yysize1;
  2691.         yyfmt = yystpcpy (yyfmt, yyprefix);
  2692.         yyprefix = yyor;
  2693.           }
  2694.  
  2695.       yyf = YY_(yyformat);
  2696.       yysize1 = yysize + yystrlen (yyf);
  2697.       yysize_overflow |= yysize1 < yysize;
  2698.       yysize = yysize1;
  2699.  
  2700.       if (!yysize_overflow && yysize <= YYSTACK_ALLOC_MAXIMUM)
  2701.         yymsg = (char *) YYSTACK_ALLOC (yysize);
  2702.       if (yymsg)
  2703.         {
  2704.           /* Avoid sprintf, as that infringes on the user's name space.
  2705.          Don't have undefined behavior even if the translation
  2706.          produced a string with the wrong number of "%s"s.  */
  2707.           char *yyp = yymsg;
  2708.           int yyi = 0;
  2709.           while ((*yyp = *yyf))
  2710.         {
  2711.           if (*yyp == '%' && yyf[1] == 's' && yyi < yycount)
  2712.             {
  2713.               yyp += yytnamerr (yyp, yyarg[yyi++]);
  2714.               yyf += 2;
  2715.             }
  2716.           else
  2717.             {
  2718.               yyp++;
  2719.               yyf++;
  2720.             }
  2721.         }
  2722.           yyerror (yymsg);
  2723.           YYSTACK_FREE (yymsg);
  2724.         }
  2725.       else
  2726.         {
  2727.           yyerror (YY_("syntax error"));
  2728.           goto yyexhaustedlab;
  2729.         }
  2730.     }
  2731.       else
  2732. #endif /* YYERROR_VERBOSE */
  2733.     yyerror (YY_("syntax error"));
  2734.     }
  2735.  
  2736.  
  2737.  
  2738.   if (yyerrstatus == 3)
  2739.     {
  2740.       /* If just tried and failed to reuse look-ahead token after an
  2741.      error, discard it.  */
  2742.  
  2743.       if (yychar <= YYEOF)
  2744.         {
  2745.       /* Return failure if at end of input.  */
  2746.       if (yychar == YYEOF)
  2747.         YYABORT;
  2748.         }
  2749.       else
  2750.     {
  2751.       yydestruct ("Error: discarding", yytoken, &yylval);
  2752.       yychar = YYEMPTY;
  2753.     }
  2754.     }
  2755.  
  2756.   /* Else will try to reuse look-ahead token after shifting the error
  2757.      token.  */
  2758.   goto yyerrlab1;
  2759.  
  2760.  
  2761. /*---------------------------------------------------.
  2762. | yyerrorlab -- error raised explicitly by YYERROR.  |
  2763. `---------------------------------------------------*/
  2764. yyerrorlab:
  2765.  
  2766.   /* Pacify compilers like GCC when the user code never invokes
  2767.      YYERROR and the label yyerrorlab therefore never appears in user
  2768.      code.  */
  2769.   if (0)
  2770.      goto yyerrorlab;
  2771.  
  2772. yyvsp -= yylen;
  2773.   yyssp -= yylen;
  2774.   yystate = *yyssp;
  2775.   goto yyerrlab1;
  2776.  
  2777.  
  2778. /*-------------------------------------------------------------.
  2779. | yyerrlab1 -- common code for both syntax error and YYERROR.  |
  2780. `-------------------------------------------------------------*/
  2781. yyerrlab1:
  2782.   yyerrstatus = 3;    /* Each real token shifted decrements this.  */
  2783.  
  2784.   for (;;)
  2785.     {
  2786.       yyn = yypact[yystate];
  2787.       if (yyn != YYPACT_NINF)
  2788.     {
  2789.       yyn += YYTERROR;
  2790.       if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYTERROR)
  2791.         {
  2792.           yyn = yytable[yyn];
  2793.           if (0 < yyn)
  2794.         break;
  2795.         }
  2796.     }
  2797.  
  2798.       /* Pop the current state because it cannot handle the error token.  */
  2799.       if (yyssp == yyss)
  2800.     YYABORT;
  2801.  
  2802.  
  2803.       yydestruct ("Error: popping", yystos[yystate], yyvsp);
  2804.       YYPOPSTACK;
  2805.       yystate = *yyssp;
  2806.       YY_STACK_PRINT (yyss, yyssp);
  2807.     }
  2808.  
  2809.   if (yyn == YYFINAL)
  2810.     YYACCEPT;
  2811.  
  2812.   *++yyvsp = yylval;
  2813.  
  2814.  
  2815.   /* Shift the error token. */
  2816.   YY_SYMBOL_PRINT ("Shifting", yystos[yyn], yyvsp, yylsp);
  2817.  
  2818.   yystate = yyn;
  2819.   goto yynewstate;
  2820.  
  2821.  
  2822. /*-------------------------------------.
  2823. | yyacceptlab -- YYACCEPT comes here.  |
  2824. `-------------------------------------*/
  2825. yyacceptlab:
  2826.   yyresult = 0;
  2827.   goto yyreturn;
  2828.  
  2829. /*-----------------------------------.
  2830. | yyabortlab -- YYABORT comes here.  |
  2831. `-----------------------------------*/
  2832. yyabortlab:
  2833.   yyresult = 1;
  2834.   goto yyreturn;
  2835.  
  2836. #ifndef yyoverflow
  2837. /*-------------------------------------------------.
  2838. | yyexhaustedlab -- memory exhaustion comes here.  |
  2839. `-------------------------------------------------*/
  2840. yyexhaustedlab:
  2841.   yyerror (YY_("memory exhausted"));
  2842.   yyresult = 2;
  2843.   /* Fall through.  */
  2844. #endif
  2845.  
  2846. yyreturn:
  2847.   if (yychar != YYEOF && yychar != YYEMPTY)
  2848.      yydestruct ("Cleanup: discarding lookahead",
  2849.          yytoken, &yylval);
  2850.   while (yyssp != yyss)
  2851.     {
  2852.       yydestruct ("Cleanup: popping",
  2853.           yystos[*yyssp], yyvsp);
  2854.       YYPOPSTACK;
  2855.     }
  2856. #ifndef yyoverflow
  2857.   if (yyss != yyssa)
  2858.     YYSTACK_FREE (yyss);
  2859. #endif
  2860.   return yyresult;
  2861. }
  2862.  
  2863.  
  2864. // #line 368 "asm.y"
  2865.  
  2866.  
  2867. int
  2868. yyerror (char *s)
  2869. {
  2870.     fprintf (stderr, "line %d, %s\n", num_lines, s);
  2871.     return 0;
  2872. }
  2873.  
  2874. void asm_set_source(struct membuf *buffer);
  2875.  
  2876. int assemble(struct membuf *source, struct membuf *dest)
  2877. {
  2878.     int val;
  2879.  
  2880.     LOG_INIT_CONSOLE(LOG_NORMAL);
  2881.     parse_init();
  2882.     yydebug = 0;
  2883.     asm_src_buffer_push(source);
  2884.     vec_init(asm_atoms, sizeof(struct atom*));
  2885.     val = yyparse();
  2886.     if(val == 0)
  2887.     {
  2888.         output_atoms(dest, asm_atoms);
  2889.     }
  2890.     parse_free();
  2891.     vec_free(asm_atoms, NULL);
  2892.     yycleanup();
  2893.     LOG_FREE;
  2894.  
  2895.     return val;
  2896. }
  2897.  
  2898.