Bochs/bochs/debug/parser.c

2428 lines
87 KiB
C
Raw Normal View History

#ifndef lint
static char const
yyrcsid[] = "$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.28 2000/01/17 02:04:06 bde Exp $";
#endif
#include <stdlib.h>
#define YYBYACC 1
#define YYMAJOR 1
#define YYMINOR 9
#define YYLEX yylex()
#define YYEMPTY -1
#define yyclearin (yychar=(YYEMPTY))
#define yyerrok (yyerrflag=0)
#define YYRECOVERING() (yyerrflag!=0)
static int yygrowstack();
#define yyparse bxparse
#define yylex bxlex
#define yyerror bxerror
#define yychar bxchar
#define yyval bxval
#define yylval bxlval
#define yydebug bxdebug
#define yynerrs bxnerrs
#define yyerrflag bxerrflag
#define yyss bxss
#define yyssp bxssp
#define yyvs bxvs
#define yyvsp bxvsp
#define yylhs bxlhs
#define yylen bxlen
#define yydefred bxdefred
#define yydgoto bxdgoto
#define yysindex bxsindex
#define yyrindex bxrindex
#define yygindex bxgindex
#define yytable bxtable
#define yycheck bxcheck
#define yyname bxname
#define yyrule bxrule
#define yysslim bxsslim
#define yystacksize bxstacksize
#define YYPREFIX "bx"
#line 6 "parser.y"
#include <stdio.h>
#include <stdlib.h>
#include "debug.h"
- apply patch.ifdef-disabled-options. Comments from that patch are below: For a whole lot of configure options, I put #if...#endif around code that is specific to the option, even in files which are normally only compiled when the option is on. This allows me to create a MS Visual C++ 6.0 workspace that supports many of these options. The workspace will basically compile every file all the time, but the code for disabled options will be commented out by the #if...#endif. This may one day lead to simplification of the Makefiles and configure scripts, but for the moment I'm leaving Makefiles and configure scripts alone. Affected options: BX_SUPPORT_APIC (cpu/apic.cc) BX_SUPPORT_X86_64 (cpu/*64.cc) BX_DEBUGGER (debug/*) BX_DISASM (disasm/*) BX_WITH_nameofgui (gui/*) BX_SUPPORT_CDROM (iodev/cdrom.cc) BX_NE2K_SUPPORT (iodev/eth*.cc, iodev/ne2k.cc) BX_SUPPORT_APIC (iodev/ioapic.cc) BX_IODEBUG_SUPPORT (iodev/iodebug.cc) BX_PCI_SUPPORT (iodev/pci*.cc) BX_SUPPORT_SB16 (iodev/sb*.cc) Modified Files: cpu/apic.cc cpu/arith64.cc cpu/ctrl_xfer64.cc cpu/data_xfer64.cc cpu/fetchdecode64.cc cpu/logical64.cc cpu/mult64.cc cpu/resolve64.cc cpu/shift64.cc cpu/stack64.cc debug/Makefile.in debug/crc.cc debug/dbg_main.cc debug/lexer.l debug/linux.cc debug/parser.c debug/parser.y disasm/dis_decode.cc disasm/dis_groups.cc gui/amigaos.cc gui/beos.cc gui/carbon.cc gui/macintosh.cc gui/rfb.cc gui/sdl.cc gui/term.cc gui/win32.cc gui/wx.cc gui/wxdialog.cc gui/wxmain.cc gui/x.cc iodev/cdrom.cc iodev/eth.cc iodev/eth_arpback.cc iodev/eth_fbsd.cc iodev/eth_linux.cc iodev/eth_null.cc iodev/eth_packetmaker.cc iodev/eth_tap.cc iodev/eth_tuntap.cc iodev/eth_win32.cc iodev/ioapic.cc iodev/iodebug.cc iodev/ne2k.cc iodev/pci.cc iodev/pci2isa.cc iodev/sb16.cc iodev/soundlnx.cc iodev/soundwin.cc
2002-11-19 08:47:45 +03:00
#if BX_DEBUGGER
/* %left '-' '+'*/
/* %left '*' '/'*/
/* %right*/
/* %nonassoc UMINUS*/
2003-08-04 20:03:09 +04:00
#line 19 "parser.y"
typedef union {
char *sval;
Bit32u uval;
Bit64u ulval;
bx_num_range uval_range;
2003-08-04 20:03:09 +04:00
Regs reg;
} YYSTYPE;
2003-08-04 20:03:09 +04:00
#line 62 "y.tab.c"
#define YYERRCODE 256
2003-08-04 20:03:09 +04:00
#define BX_TOKEN_REG_AL 257
#define BX_TOKEN_REG_BL 258
#define BX_TOKEN_REG_CL 259
#define BX_TOKEN_REG_DL 260
#define BX_TOKEN_REG_AH 261
#define BX_TOKEN_REG_BH 262
#define BX_TOKEN_REG_CH 263
#define BX_TOKEN_REG_DH 264
#define BX_TOKEN_REG_AX 265
#define BX_TOKEN_REG_BX 266
#define BX_TOKEN_REG_CX 267
#define BX_TOKEN_REG_DX 268
#define BX_TOKEN_REG_EAX 269
#define BX_TOKEN_REG_EBX 270
#define BX_TOKEN_REG_ECX 271
#define BX_TOKEN_REG_EDX 272
#define BX_TOKEN_REG_SI 273
#define BX_TOKEN_REG_DI 274
#define BX_TOKEN_REG_BP 275
#define BX_TOKEN_REG_SP 276
#define BX_TOKEN_REG_IP 277
#define BX_TOKEN_REG_ESI 278
#define BX_TOKEN_REG_EDI 279
#define BX_TOKEN_REG_EBP 280
#define BX_TOKEN_REG_ESP 281
#define BX_TOKEN_REG_EIP 282
#define BX_TOKEN_CONTINUE 283
#define BX_TOKEN_STEPN 284
#define BX_TOKEN_STEP_OVER 285
#define BX_TOKEN_NEXT_STEP 286
#define BX_TOKEN_SET 287
#define BX_TOKEN_DEBUGGER 288
#define BX_TOKEN_LIST_BREAK 289
#define BX_TOKEN_VBREAKPOINT 290
#define BX_TOKEN_LBREAKPOINT 291
#define BX_TOKEN_PBREAKPOINT 292
#define BX_TOKEN_DEL_BREAKPOINT 293
#define BX_TOKEN_ENABLE_BREAKPOINT 294
#define BX_TOKEN_DISABLE_BREAKPOINT 295
#define BX_TOKEN_INFO 296
#define BX_TOKEN_QUIT 297
#define BX_TOKEN_PROGRAM 298
#define BX_TOKEN_REGISTERS 299
#define BX_TOKEN_CPU 300
#define BX_TOKEN_FPU 301
#define BX_TOKEN_ALL 302
#define BX_TOKEN_IDT 303
#define BX_TOKEN_GDT 304
#define BX_TOKEN_LDT 305
#define BX_TOKEN_TSS 306
#define BX_TOKEN_DIRTY 307
#define BX_TOKEN_LINUX 308
#define BX_TOKEN_CONTROL_REGS 309
#define BX_TOKEN_EXAMINE 310
#define BX_TOKEN_XFORMAT 311
#define BX_TOKEN_DISFORMAT 312
#define BX_TOKEN_SETPMEM 313
#define BX_TOKEN_SYMBOLNAME 314
#define BX_TOKEN_QUERY 315
#define BX_TOKEN_PENDING 316
#define BX_TOKEN_TAKE 317
#define BX_TOKEN_DMA 318
#define BX_TOKEN_IRQ 319
#define BX_TOKEN_DUMP_CPU 320
#define BX_TOKEN_SET_CPU 321
#define BX_TOKEN_DIS 322
#define BX_TOKEN_ON 323
#define BX_TOKEN_OFF 324
#define BX_TOKEN_DISASSEMBLE 325
#define BX_TOKEN_INSTRUMENT 326
#define BX_TOKEN_START 327
#define BX_TOKEN_STOP 328
#define BX_TOKEN_RESET 329
#define BX_TOKEN_PRINT 330
#define BX_TOKEN_LOADER 331
#define BX_TOKEN_STRING 332
#define BX_TOKEN_DOIT 333
#define BX_TOKEN_CRC 334
#define BX_TOKEN_TRACEON 335
#define BX_TOKEN_TRACEOFF 336
#define BX_TOKEN_PTIME 337
#define BX_TOKEN_TIMEBP_ABSOLUTE 338
#define BX_TOKEN_TIMEBP 339
#define BX_TOKEN_RECORD 340
#define BX_TOKEN_PLAYBACK 341
#define BX_TOKEN_MODEBP 342
#define BX_TOKEN_PRINT_STACK 343
#define BX_TOKEN_WATCH 344
#define BX_TOKEN_UNWATCH 345
#define BX_TOKEN_READ 346
#define BX_TOKEN_WRITE 347
#define BX_TOKEN_SHOW 348
#define BX_TOKEN_SYMBOL 349
#define BX_TOKEN_SYMBOLS 350
#define BX_TOKEN_LIST_SYMBOLS 351
#define BX_TOKEN_GLOBAL 352
#define BX_TOKEN_WHERE 353
#define BX_TOKEN_PRINT_STRING 354
#define BX_TOKEN_DIFF_MEMORY 355
#define BX_TOKEN_SYNC_MEMORY 356
#define BX_TOKEN_SYNC_CPU 357
#define BX_TOKEN_FAST_FORWARD 358
#define BX_TOKEN_PHY_2_LOG 359
#define BX_TOKEN_NUMERIC 360
#define BX_TOKEN_LONG_NUMERIC 361
#define BX_TOKEN_INFO_ADDRESS 362
#define BX_TOKEN_NE2000 363
#define BX_TOKEN_PIC 364
#define BX_TOKEN_PAGE 365
#define BX_TOKEN_CS 366
#define BX_TOKEN_ES 367
#define BX_TOKEN_SS 368
#define BX_TOKEN_DS 369
#define BX_TOKEN_FS 370
#define BX_TOKEN_GS 371
#define BX_TOKEN_FLAGS 372
#define BX_TOKEN_ALWAYS_CHECK 373
#define BX_TOKEN_TRACEREGON 374
#define BX_TOKEN_TRACEREGOFF 375
#define BX_TOKEN_HELP 376
#define BX_TOKEN_CALC 377
#define BX_TOKEN_RSHIFT 378
#define BX_TOKEN_LSHIFT 379
#define BX_TOKEN_IVT 380
#define NOT 381
#define NEG 382
const short bxlhs[] = { -1,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 48, 48, 48, 48, 48, 48,
48, 48, 48, 48, 5, 5, 5, 5, 5, 5,
38, 38, 39, 40, 41, 41, 44, 44, 37, 35,
36, 42, 42, 43, 43, 43, 43, 43, 43, 43,
43, 45, 45, 45, 46, 47, 11, 12, 12, 13,
14, 14, 14, 16, 16, 16, 16, 16, 16, 16,
16, 18, 19, 19, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, 17, 17, 17, 17, 17,
17, 17, 17, 17, 17, 6, 6, 8, 8, 7,
7, 20, 21, 22, 23, 24, 25, 25, 25, 25,
26, 27, 28, 28, 28, 29, 30, 30, 31, 31,
31, 31, 32, 33, 34, 49, 50, 51, 51, 52,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 2, 2, 2, 2,
3, 3, 3, 3, 3, 3, 4, 4, 4, 9,
9, 9, 9, 9, 9, 9, 9, 9, 9, 9,
2003-08-04 20:03:09 +04:00
9, 9, 9, 9, 9, 10, 10, 10, 10, 10,
10, 10, 10, 10, 10, 10, 10, 10, 10, 10,
10, 10, 10, 15,
};
const short bxlen[] = { 2,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
2003-08-04 20:03:09 +04:00
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 0, 1, 2, 3, 3, 3, 3, 3,
3, 5, 4, 4, 1, 1, 1, 1, 1, 1,
3, 3, 3, 3, 3, 2, 3, 2, 2, 2,
2, 2, 3, 3, 3, 2, 2, 4, 4, 4,
4, 3, 4, 5, 2, 3, 2, 2, 3, 2,
4, 4, 5, 2, 5, 2, 3, 3, 2, 3,
4, 2, 2, 3, 3, 3, 3, 3, 3, 3,
3, 4, 4, 4, 4, 4, 3, 3, 3, 4,
3, 3, 5, 7, 3, 0, 1, 0, 1, 1,
2, 2, 3, 3, 3, 2, 4, 3, 3, 2,
5, 3, 3, 4, 3, 2, 3, 4, 3, 3,
3, 3, 3, 3, 4, 2, 2, 3, 2, 3,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 3, 3, 3, 3, 3, 3, 3,
3, 3, 2, 2, 3, 1, 1, 1, 1, 1,
3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
2, 2, 3, 5,
};
const short bxdefred[] = { 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 44, 0, 1, 2, 3, 4, 5, 6,
7, 8, 9, 10, 11, 12, 13, 14, 15, 16,
17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 29, 30, 31, 32, 33, 34, 35, 36,
37, 38, 39, 40, 41, 42, 87, 0, 88, 90,
0, 0, 102, 161, 162, 163, 164, 165, 166, 167,
168, 169, 170, 171, 172, 173, 174, 175, 176, 177,
178, 181, 182, 183, 179, 180, 184, 185, 186, 190,
191, 55, 56, 57, 58, 59, 60, 0, 94, 0,
0, 187, 188, 189, 192, 193, 0, 0, 206, 207,
0, 96, 0, 0, 209, 210, 0, 208, 0, 99,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 136, 0, 0, 140, 0, 0, 0, 0,
0, 132, 146, 0, 129, 0, 0, 0, 0, 0,
0, 0, 0, 0, 70, 71, 69, 0, 0, 0,
0, 0, 66, 0, 72, 0, 0, 0, 0, 76,
0, 0, 77, 0, 68, 0, 0, 0, 103, 85,
0, 45, 0, 0, 0, 0, 0, 0, 0, 0,
156, 157, 0, 159, 0, 89, 0, 0, 0, 204,
203, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 98, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 97, 0, 0, 100, 133,
134, 135, 105, 107, 108, 106, 109, 110, 0, 0,
0, 0, 111, 118, 121, 0, 119, 0, 122, 125,
117, 0, 0, 138, 0, 139, 0, 142, 0, 143,
145, 0, 147, 0, 0, 149, 150, 151, 152, 153,
154, 0, 62, 61, 63, 64, 65, 73, 75, 74,
0, 0, 0, 0, 67, 0, 82, 0, 104, 86,
46, 47, 48, 49, 50, 51, 0, 0, 0, 158,
160, 0, 91, 92, 205, 198, 199, 0, 0, 0,
0, 196, 197, 202, 0, 223, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 101, 112, 114, 115,
116, 120, 0, 113, 0, 137, 0, 144, 148, 0,
155, 78, 80, 79, 81, 83, 0, 0, 53, 54,
93, 95, 0, 123, 224, 141, 84, 52, 0, 124,
};
2003-08-04 20:03:09 +04:00
const short bxdgoto[] = { 54,
142, 143, 144, 155, 156, 0, 195, 196, 147, 197,
55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
65, 66, 67, 68, 69, 70, 71, 72, 73, 74,
75, 76, 77, 78, 79, 80, 81, 82, 83, 84,
85, 86, 87, 88, 89, 90, 91, 92, 93, 94,
95, 96,
};
2003-08-04 20:03:09 +04:00
const short bxsindex[] = { 610,
4, -8, 12, -301, 33, 1846, 1655, 1251, -312, -309,
-296, 1480, 57, 446, 1534, -291, -244, -272, 64, 72,
1999, -310, -247, -269, -264, 79, 91, 98, -250, -243,
-212, -208, -9, -7, 17, 26, -2, -308, -1, 115,
-234, 119, -271, -229, -232, -230, -290, -227, 125, 128,
1, 2114, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 133, 0, 0,
84, -219, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 2190, 0, 2190,
2190, 0, 0, 0, 0, 0, 1158, 138, 0, 0,
2114, 0, 2114, 2114, 0, 0, 28, 0, 2114, 0,
45, 140, 143, 144, 152, 154, 155, 156, 157, 160,
2114, 2114, 2114, 2114, 162, 163, 164, 6, -3, 165,
167, 2114, 0, 117, 1731, 0, 55, -180, 171, -6,
172, 0, 0, 2114, 0, 174, 1923, 175, 176, 177,
178, 179, 180, -169, 0, 0, 0, 186, 187, 189,
190, 191, 0, 192, 0, 193, 194, -155, -154, 0,
-152, -151, 0, 200, 0, -5, -121, 204, 0, 0,
205, 0, 206, 207, 208, 209, 210, 211, 166, -217,
0, 0, 212, 0, 89, 0, -135, 216, 217, 0,
0, 74, 2190, 2190, 2190, 2190, 2190, 2190, 2190, 2190,
2190, 2114, 0, 170, 170, 1054, 2114, 2114, 2114, 2114,
2114, 2114, 2114, 2114, 2114, 0, 2114, 99, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 219, 220,
221, 222, 0, 0, 0, 223, 0, -126, 0, 0,
0, 225, 2114, 0, 113, 0, -124, 0, 228, 0,
0, 229, 0, 2114, 1175, 0, 0, 0, 0, 0,
0, 230, 0, 0, 0, 0, 0, 0, 0, 0,
231, 233, 234, 235, 0, 236, 0, -61, 0, 0,
0, 0, 0, 0, 0, 0, -58, 293, 295, 0,
0, 296, 0, 0, 0, 0, 0, -32, -32, -32,
-32, 0, 0, 0, 792, 0, 170, 170, -13, -13,
-13, -13, 170, 170, 170, 1175, 0, 0, 0, 0,
0, 0, 2, 0, 832, 0, 306, 0, 0, 170,
0, 0, 0, 0, 0, 0, 307, 308, 0, 0,
0, 0, -41, 0, 0, 0, 0, 0, 310, 0,
};
2003-08-04 20:03:09 +04:00
const short bxrindex[] = { 321,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
314, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 0, 0, 0, 0, 1187, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
314, 314, 314, 314, 0, 0, 0, 0, 0, 0,
0, 314, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 314, 0, 0, 315, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, -10, 16, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 0, 330, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 118, 356, 455,
456, 0, 0, 0, 0, 0, 294, 370, 1078, 1104,
1382, 1458, 418, 494, 772, 1807, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 798,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
};
const short bxgindex[] = { 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 54, 343, 0, 0, -132, 188, 2346,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0,
};
2003-08-04 20:03:09 +04:00
#define YYTABLESIZE 2660
const short bxtable[] = { 222,
213, 99, 215, 310, 337, 261, 299, 225, 229, 259,
244, 404, 101, 97, 260, 297, 198, 199, 200, 201,
102, 100, 222, 226, 275, 221, 220, 222, 273, 222,
222, 222, 222, 274, 222, 223, 222, 276, 289, 290,
291, 292, 103, 227, 277, 190, 191, 162, 221, 302,
163, 233, 234, 221, 279, 221, 221, 221, 221, 145,
221, 312, 221, 164, 306, 275, 183, 184, 188, 273,
269, 189, 270, 192, 274, 132, 133, 134, 135, 136,
137, 193, 275, 222, 202, 277, 273, 269, 205, 270,
203, 274, 275, 235, 236, 204, 273, 269, 351, 270,
206, 274, 277, 248, 249, 348, 349, 207, 377, 221,
208, 261, 277, 222, 355, 259, 255, 209, 256, 210,
260, 272, 386, 211, 230, 231, 275, 237, 232, 238,
273, 269, 240, 270, 241, 274, 275, 242, 272, 221,
273, 269, 246, 270, 247, 274, 277, 263, 272, 280,
275, 271, 281, 282, 273, 269, 277, 270, 194, 274,
194, 283, 194, 284, 285, 286, 287, 258, 271, 288,
277, 293, 294, 295, 300, 194, 301, 303, 271, 307,
308, 311, 272, 313, 316, 317, 318, 319, 320, 321,
322, 145, 272, 145, 145, 323, 324, 257, 325, 326,
327, 328, 329, 330, 331, 332, 272, 333, 334, 335,
338, 194, 271, 339, 340, 341, 342, 343, 344, 345,
346, 350, 271, 347, 352, 353, 354, 277, 378, 379,
380, 381, 382, 383, 384, 387, 271, 388, 389, 391,
392, 194, 393, 394, 395, 396, 222, 222, 222, 222,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 222, 222, 222, 222, 222, 222, 222, 222,
222, 222, 221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221, 221, 221,
221, 221, 221, 221, 221, 221, 221, 221, 397, 216,
403, 398, 399, 216, 400, 401, 145, 145, 145, 145,
145, 145, 145, 145, 145, 406, 407, 408, 409, 410,
43, 222, 212, 128, 130, 250, 216, 251, 252, 224,
228, 216, 243, 216, 216, 216, 216, 296, 216, 131,
216, 0, 0, 0, 217, 253, 254, 221, 146, 222,
222, 98, 214, 309, 336, 222, 222, 222, 222, 222,
222, 298, 218, 219, 267, 268, 0, 222, 222, 0,
0, 221, 222, 0, 0, 221, 221, 0, 0, 217,
0, 221, 221, 221, 221, 221, 221, 216, 0, 239,
0, 0, 0, 221, 221, 0, 195, 0, 195, 0,
195, 0, 217, 0, 0, 267, 268, 217, 0, 217,
217, 217, 217, 195, 217, 0, 217, 216, 0, 0,
0, 0, 267, 268, 0, 0, 0, 214, 0, 0,
0, 0, 267, 268, 0, 0, 0, 0, 0, 0,
356, 357, 358, 359, 360, 361, 362, 363, 364, 195,
214, 253, 254, 0, 0, 214, 0, 214, 214, 214,
214, 0, 214, 217, 214, 0, 267, 268, 0, 0,
0, 0, 0, 0, 0, 0, 267, 268, 0, 195,
146, 0, 146, 146, 0, 0, 0, 0, 0, 0,
267, 268, 0, 217, 0, 200, 201, 200, 201, 200,
201, 0, 0, 215, 0, 0, 0, 0, 0, 0,
0, 214, 200, 201, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 215, 0, 0, 0,
0, 215, 0, 215, 215, 215, 215, 0, 215, 0,
215, 214, 0, 0, 0, 0, 0, 0, 200, 201,
216, 216, 216, 216, 216, 216, 216, 216, 216, 216,
216, 216, 216, 216, 216, 216, 216, 216, 216, 216,
216, 216, 216, 216, 216, 216, 0, 0, 200, 201,
0, 0, 0, 0, 0, 0, 0, 215, 0, 0,
0, 0, 0, 0, 0, 146, 146, 146, 146, 146,
146, 146, 146, 146, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 215, 0, 53,
0, 0, 0, 0, 0, 216, 217, 217, 217, 217,
217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
217, 217, 217, 217, 217, 217, 217, 217, 217, 217,
217, 217, 0, 216, 216, 0, 0, 0, 0, 216,
216, 216, 216, 216, 216, 0, 0, 0, 0, 0,
0, 216, 216, 0, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
214, 214, 214, 214, 214, 214, 214, 214, 214, 214,
0, 217, 104, 105, 106, 107, 108, 109, 110, 111,
112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
122, 123, 124, 125, 126, 127, 128, 129, 0, 217,
217, 0, 0, 0, 0, 217, 217, 217, 217, 217,
217, 0, 0, 0, 0, 0, 0, 217, 217, 214,
215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
215, 215, 215, 215, 215, 215, 215, 215, 215, 215,
215, 215, 215, 215, 215, 215, 0, 214, 214, 0,
0, 220, 0, 214, 214, 214, 214, 214, 214, 0,
0, 0, 0, 0, 0, 214, 214, 0, 0, 0,
0, 402, 0, 0, 220, 0, 0, 213, 0, 220,
0, 220, 220, 220, 220, 0, 220, 0, 220, 0,
0, 0, 0, 0, 0, 215, 0, 0, 0, 275,
213, 0, 0, 273, 269, 222, 270, 213, 274, 222,
213, 405, 213, 0, 222, 0, 0, 0, 0, 277,
0, 0, 0, 215, 215, 0, 0, 0, 0, 215,
215, 215, 215, 215, 215, 220, 0, 0, 0, 275,
0, 215, 215, 273, 269, 0, 270, 0, 274, 0,
0, 0, 0, 0, 0, 272, 0, 0, 0, 277,
0, 213, 1, 2, 3, 220, 4, 0, 5, 6,
7, 8, 9, 10, 11, 12, 13, 0, 14, 0,
0, 0, 0, 0, 0, 271, 0, 0, 0, 15,
0, 213, 16, 0, 17, 272, 18, 0, 0, 19,
20, 0, 0, 0, 21, 22, 0, 0, 0, 0,
23, 0, 24, 25, 26, 27, 28, 29, 30, 31,
32, 33, 34, 35, 36, 271, 0, 37, 38, 0,
39, 0, 40, 41, 42, 43, 44, 45, 46, 0,
0, 47, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 48, 49, 50, 51, 52, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 220, 220,
220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
220, 220, 220, 220, 220, 220, 220, 220, 220, 220,
220, 220, 220, 220, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
0, 0, 0, 0, 0, 0, 0, 212, 0, 0,
0, 275, 0, 0, 366, 273, 269, 0, 270, 0,
274, 0, 0, 220, 0, 0, 0, 0, 0, 0,
212, 277, 0, 213, 0, 0, 0, 212, 212, 0,
212, 0, 212, 0, 0, 0, 0, 0, 0, 213,
0, 220, 220, 0, 0, 0, 213, 220, 220, 220,
220, 220, 220, 213, 213, 0, 213, 272, 213, 220,
220, 0, 0, 0, 0, 0, 0, 213, 213, 0,
0, 0, 0, 213, 213, 213, 213, 213, 213, 267,
268, 212, 0, 0, 0, 222, 222, 271, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 261, 0, 213, 0, 259,
255, 212, 256, 0, 260, 0, 0, 0, 0, 267,
268, 0, 275, 0, 0, 262, 273, 269, 0, 270,
0, 274, 0, 0, 208, 0, 0, 213, 208, 208,
0, 208, 277, 208, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 208, 0, 0, 0, 0, 0,
0, 258, 0, 0, 0, 0, 0, 0, 0, 0,
160, 0, 0, 0, 0, 0, 0, 0, 272, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
208, 257, 0, 153, 0, 0, 0, 0, 0, 0,
154, 0, 159, 0, 0, 151, 0, 0, 271, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
208, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 0, 212, 212, 212, 212, 212, 212,
212, 212, 212, 212, 212, 212, 212, 212, 212, 212,
212, 212, 212, 212, 212, 212, 212, 212, 212, 212,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 213, 213, 213, 213,
213, 213, 213, 213, 213, 213, 0, 0, 0, 0,
0, 218, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 212,
0, 0, 0, 0, 218, 0, 0, 0, 0, 0,
0, 218, 218, 0, 218, 0, 218, 0, 0, 0,
0, 267, 268, 0, 0, 213, 0, 212, 212, 0,
0, 0, 0, 212, 212, 212, 212, 212, 212, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
0, 0, 0, 213, 213, 0, 0, 219, 0, 213,
213, 213, 213, 213, 213, 218, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
2003-08-04 20:03:09 +04:00
219, 0, 0, 0, 0, 0, 0, 219, 219, 0,
219, 0, 219, 0, 0, 218, 0, 104, 105, 106,
107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
127, 128, 129, 0, 0, 253, 254, 0, 0, 0,
0, 0, 0, 186, 0, 0, 0, 0, 0, 0,
0, 219, 267, 268, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 208, 208, 153, 0, 0, 0,
0, 0, 0, 154, 0, 0, 0, 0, 151, 0,
0, 219, 158, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
149, 150, 0, 0, 0, 0, 132, 133, 134, 135,
136, 137, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 218, 218,
218, 218, 218, 218, 218, 218, 218, 218, 218, 218,
218, 218, 218, 218, 218, 218, 218, 218, 218, 218,
218, 218, 218, 218, 152, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 153, 0, 0,
0, 0, 0, 0, 154, 0, 0, 0, 0, 151,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 218, 219, 219, 219, 219, 219, 219,
219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
219, 219, 219, 219, 219, 219, 219, 219, 219, 219,
304, 218, 218, 0, 0, 0, 0, 218, 218, 218,
218, 218, 218, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 153, 0, 0, 0, 0, 0, 0,
154, 165, 0, 0, 0, 151, 0, 166, 167, 168,
169, 170, 171, 172, 173, 174, 175, 176, 177, 219,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
124, 125, 126, 127, 128, 129, 211, 219, 219, 0,
0, 0, 0, 219, 219, 219, 219, 219, 219, 178,
0, 0, 0, 0, 0, 0, 0, 0, 0, 211,
0, 0, 179, 180, 185, 0, 211, 211, 0, 0,
0, 181, 0, 0, 0, 139, 0, 0, 0, 182,
0, 0, 0, 0, 0, 158, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 140, 0,
0, 0, 0, 0, 0, 141, 0, 0, 0, 0,
138, 0, 0, 149, 150, 0, 0, 0, 0, 132,
133, 134, 135, 136, 137, 0, 0, 0, 0, 0,
0, 104, 105, 106, 107, 108, 109, 110, 111, 112,
113, 114, 115, 116, 117, 118, 119, 120, 121, 122,
123, 124, 125, 126, 127, 128, 129, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 153, 0, 0, 0, 0,
275, 0, 154, 0, 273, 269, 0, 314, 0, 274,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
277, 0, 0, 0, 0, 0, 148, 104, 105, 106,
107, 108, 109, 110, 111, 112, 113, 114, 115, 116,
117, 118, 119, 120, 121, 122, 123, 124, 125, 126,
127, 128, 129, 0, 149, 150, 272, 0, 0, 0,
132, 133, 134, 135, 136, 137, 0, 0, 0, 0,
0, 153, 0, 0, 0, 0, 0, 0, 154, 0,
0, 0, 0, 151, 0, 0, 271, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 158, 211, 211, 211, 211, 211, 211, 211,
211, 211, 211, 211, 211, 211, 211, 211, 211, 211,
211, 211, 211, 211, 211, 211, 211, 211, 211, 0,
149, 150, 0, 0, 0, 0, 132, 133, 134, 135,
136, 137, 104, 105, 106, 107, 108, 109, 110, 111,
112, 113, 114, 115, 116, 117, 118, 119, 120, 121,
122, 123, 124, 125, 126, 127, 128, 129, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 211, 0,
0, 0, 0, 0, 0, 0, 153, 0, 0, 0,
0, 0, 0, 154, 0, 0, 0, 0, 151, 0,
0, 0, 0, 0, 0, 0, 211, 211, 0, 0,
0, 0, 211, 211, 211, 211, 211, 211, 0, 104,
105, 106, 107, 108, 109, 110, 111, 112, 113, 114,
115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
125, 126, 127, 128, 129, 130, 131, 0, 0, 0,
0, 132, 133, 134, 135, 136, 137, 0, 0, 0,
0, 0, 140, 0, 0, 0, 0, 0, 0, 141,
0, 0, 0, 0, 138, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 158, 104, 105, 106, 107, 108,
109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
119, 120, 121, 122, 123, 124, 125, 126, 127, 128,
129, 0, 149, 150, 0, 0, 0, 0, 132, 133,
134, 135, 136, 137, 0, 0, 0, 0, 0, 0,
267, 268, 0, 0, 0, 0, 0, 0, 0, 0,
194, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
158, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 157, 161, 0, 0, 0, 0, 149, 150,
187, 0, 0, 0, 132, 133, 134, 135, 136, 137,
104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
114, 115, 116, 117, 118, 119, 120, 121, 122, 123,
124, 125, 126, 127, 128, 129, 0, 245, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 158, 104, 105, 106, 107,
108, 109, 110, 111, 112, 113, 114, 115, 116, 117,
118, 119, 120, 121, 122, 123, 124, 125, 126, 127,
128, 129, 0, 149, 150, 0, 0, 0, 0, 132,
133, 134, 135, 136, 137, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 264, 0, 265, 266,
0, 0, 0, 0, 278, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
305, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 315, 0, 0, 0, 0, 0, 0, 130,
131, 0, 0, 0, 0, 132, 133, 134, 135, 136,
137, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 365, 0, 0,
0, 0, 367, 368, 369, 370, 371, 372, 373, 374,
375, 0, 376, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 385, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 390,
};
const short bxcheck[] = { 10,
2003-08-04 20:03:09 +04:00
10, 10, 10, 10, 10, 38, 10, 10, 10, 42,
10, 10, 314, 10, 47, 10, 327, 328, 329, 330,
322, 10, 33, 332, 38, 10, 10, 38, 42, 40,
41, 42, 43, 47, 45, 10, 47, 10, 171, 172,
173, 174, 10, 352, 58, 318, 319, 360, 33, 182,
360, 323, 324, 38, 10, 40, 41, 42, 43, 6,
45, 194, 47, 360, 10, 38, 10, 14, 360, 42,
43, 316, 45, 10, 47, 366, 367, 368, 369, 370,
371, 10, 38, 94, 332, 58, 42, 43, 10, 45,
360, 47, 38, 323, 324, 360, 42, 43, 10, 45,
10, 47, 58, 323, 324, 323, 324, 10, 10, 94,
361, 38, 58, 124, 41, 42, 43, 361, 45, 332,
47, 94, 10, 332, 10, 360, 38, 360, 10, 360,
42, 43, 360, 45, 10, 47, 38, 10, 94, 124,
42, 43, 10, 45, 61, 47, 58, 10, 94, 10,
38, 124, 10, 10, 42, 43, 58, 45, 41, 47,
43, 10, 45, 10, 10, 10, 10, 94, 124, 10,
58, 10, 10, 10, 10, 58, 10, 61, 124, 360,
10, 10, 94, 10, 10, 10, 10, 10, 10, 10,
360, 138, 94, 140, 141, 10, 10, 124, 10, 10,
10, 10, 10, 10, 360, 360, 94, 360, 360, 10,
332, 94, 124, 10, 10, 10, 10, 10, 10, 10,
10, 10, 124, 58, 360, 10, 10, 58, 10, 10,
10, 10, 10, 360, 10, 360, 124, 10, 10, 10,
10, 124, 10, 10, 10, 10, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270,
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
281, 282, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, 360, 283,
299, 360, 10, 10, 10, 10, 253, 254, 255, 256,
257, 258, 259, 260, 261, 10, 10, 10, 360, 10,
0, 332, 332, 10, 10, 138, 33, 140, 141, 332,
332, 38, 332, 40, 41, 42, 43, 332, 45, 10,
47, -1, -1, -1, 328, 378, 379, 332, 6, 360,
361, 360, 360, 360, 360, 366, 367, 368, 369, 370,
371, 365, 346, 347, 378, 379, -1, 378, 379, -1,
-1, 346, 347, -1, -1, 360, 361, -1, -1, 10,
-1, 366, 367, 368, 369, 370, 371, 94, -1, 47,
-1, -1, -1, 378, 379, -1, 41, -1, 43, -1,
45, -1, 33, -1, -1, 378, 379, 38, -1, 40,
41, 42, 43, 58, 45, -1, 47, 124, -1, -1,
-1, -1, 378, 379, -1, -1, -1, 10, -1, -1,
-1, -1, 378, 379, -1, -1, -1, -1, -1, -1,
253, 254, 255, 256, 257, 258, 259, 260, 261, 94,
33, 378, 379, -1, -1, 38, -1, 40, 41, 42,
43, -1, 45, 94, 47, -1, 378, 379, -1, -1,
-1, -1, -1, -1, -1, -1, 378, 379, -1, 124,
138, -1, 140, 141, -1, -1, -1, -1, -1, -1,
378, 379, -1, 124, -1, 41, 41, 43, 43, 45,
45, -1, -1, 10, -1, -1, -1, -1, -1, -1,
-1, 94, 58, 58, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 33, -1, -1, -1,
-1, 38, -1, 40, 41, 42, 43, -1, 45, -1,
47, 124, -1, -1, -1, -1, -1, -1, 94, 94,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, -1, -1, 124, 124,
-1, -1, -1, -1, -1, -1, -1, 94, -1, -1,
-1, -1, -1, -1, -1, 253, 254, 255, 256, 257,
258, 259, 260, 261, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 124, -1, 10,
-1, -1, -1, -1, -1, 332, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270,
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
281, 282, -1, 360, 361, -1, -1, -1, -1, 366,
367, 368, 369, 370, 371, -1, -1, -1, -1, -1,
-1, 378, 379, -1, 257, 258, 259, 260, 261, 262,
263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282,
-1, 332, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, -1, 360,
361, -1, -1, -1, -1, 366, 367, 368, 369, 370,
371, -1, -1, -1, -1, -1, -1, 378, 379, 332,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, -1, 360, 361, -1,
-1, 10, -1, 366, 367, 368, 369, 370, 371, -1,
-1, -1, -1, -1, -1, 378, 379, -1, -1, -1,
-1, 10, -1, -1, 33, -1, -1, 10, -1, 38,
-1, 40, 41, 42, 43, -1, 45, -1, 47, -1,
-1, -1, -1, -1, -1, 332, -1, -1, -1, 38,
33, -1, -1, 42, 43, 38, 45, 40, 47, 42,
43, 10, 45, -1, 47, -1, -1, -1, -1, 58,
-1, -1, -1, 360, 361, -1, -1, -1, -1, 366,
367, 368, 369, 370, 371, 94, -1, -1, -1, 38,
-1, 378, 379, 42, 43, -1, 45, -1, 47, -1,
-1, -1, -1, -1, -1, 94, -1, -1, -1, 58,
-1, 94, 283, 284, 285, 124, 287, -1, 289, 290,
291, 292, 293, 294, 295, 296, 297, -1, 299, -1,
-1, -1, -1, -1, -1, 124, -1, -1, -1, 310,
-1, 124, 313, -1, 315, 94, 317, -1, -1, 320,
321, -1, -1, -1, 325, 326, -1, -1, -1, -1,
331, -1, 333, 334, 335, 336, 337, 338, 339, 340,
341, 342, 343, 344, 345, 124, -1, 348, 349, -1,
351, -1, 353, 354, 355, 356, 357, 358, 359, -1,
-1, 362, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 373, 374, 375, 376, 377, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 257, 258,
259, 260, 261, 262, 263, 264, 265, 266, 267, 268,
269, 270, 271, 272, 273, 274, 275, 276, 277, 278,
2003-08-04 20:03:09 +04:00
279, 280, 281, 282, 257, 258, 259, 260, 261, 262,
263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282,
-1, -1, -1, -1, -1, -1, -1, 10, -1, -1,
-1, 38, -1, -1, 41, 42, 43, -1, 45, -1,
47, -1, -1, 332, -1, -1, -1, -1, -1, -1,
33, 58, -1, 10, -1, -1, -1, 40, 41, -1,
43, -1, 45, -1, -1, -1, -1, -1, -1, 332,
-1, 360, 361, -1, -1, -1, 33, 366, 367, 368,
369, 370, 371, 40, 41, -1, 43, 94, 45, 378,
379, -1, -1, -1, -1, -1, -1, 360, 361, -1,
-1, -1, -1, 366, 367, 368, 369, 370, 371, 378,
379, 94, -1, -1, -1, 378, 379, 124, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
2003-08-04 20:03:09 +04:00
-1, -1, -1, -1, -1, 38, -1, 94, -1, 42,
43, 124, 45, -1, 47, -1, -1, -1, -1, 378,
379, -1, 38, -1, -1, 58, 42, 43, -1, 45,
-1, 47, -1, -1, 38, -1, -1, 124, 42, 43,
-1, 45, 58, 47, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 58, -1, -1, -1, -1, -1,
-1, 94, -1, -1, -1, -1, -1, -1, -1, -1,
10, -1, -1, -1, -1, -1, -1, -1, 94, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
2003-08-04 20:03:09 +04:00
94, 124, -1, 33, -1, -1, -1, -1, -1, -1,
40, -1, 42, -1, -1, 45, -1, -1, 124, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
2003-08-04 20:03:09 +04:00
124, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
2003-08-04 20:03:09 +04:00
-1, -1, -1, -1, 257, 258, 259, 260, 261, 262,
263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, -1, -1, -1, -1,
-1, 10, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 332,
-1, -1, -1, -1, 33, -1, -1, -1, -1, -1,
-1, 40, 41, -1, 43, -1, 45, -1, -1, -1,
-1, 378, 379, -1, -1, 332, -1, 360, 361, -1,
-1, -1, -1, 366, 367, 368, 369, 370, 371, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 360, 361, -1, -1, 10, -1, 366,
367, 368, 369, 370, 371, 94, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
33, -1, -1, -1, -1, -1, -1, 40, 41, -1,
43, -1, 45, -1, -1, 124, -1, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279,
280, 281, 282, -1, -1, 378, 379, -1, -1, -1,
-1, -1, -1, 10, -1, -1, -1, -1, -1, -1,
-1, 94, 378, 379, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 378, 379, 33, -1, -1, -1,
-1, -1, -1, 40, -1, -1, -1, -1, 45, -1,
-1, 124, 332, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
360, 361, -1, -1, -1, -1, 366, 367, 368, 369,
370, 371, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 257, 258,
259, 260, 261, 262, 263, 264, 265, 266, 267, 268,
269, 270, 271, 272, 273, 274, 275, 276, 277, 278,
279, 280, 281, 282, 10, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 33, -1, -1,
-1, -1, -1, -1, 40, -1, -1, -1, -1, 45,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 332, 257, 258, 259, 260, 261, 262,
263, 264, 265, 266, 267, 268, 269, 270, 271, 272,
273, 274, 275, 276, 277, 278, 279, 280, 281, 282,
10, 360, 361, -1, -1, -1, -1, 366, 367, 368,
369, 370, 371, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, 33, -1, -1, -1, -1, -1, -1,
40, 292, -1, -1, -1, 45, -1, 298, 299, 300,
301, 302, 303, 304, 305, 306, 307, 308, 309, 332,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, 10, 360, 361, -1,
-1, -1, -1, 366, 367, 368, 369, 370, 371, 350,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 33,
-1, -1, 363, 364, 311, -1, 40, 41, -1, -1,
-1, 372, -1, -1, -1, 10, -1, -1, -1, 380,
-1, -1, -1, -1, -1, 332, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 33, -1,
-1, -1, -1, -1, -1, 40, -1, -1, -1, -1,
45, -1, -1, 360, 361, -1, -1, -1, -1, 366,
367, 368, 369, 370, 371, -1, -1, -1, -1, -1,
-1, 257, 258, 259, 260, 261, 262, 263, 264, 265,
266, 267, 268, 269, 270, 271, 272, 273, 274, 275,
276, 277, 278, 279, 280, 281, 282, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 33, -1, -1, -1, -1,
38, -1, 40, -1, 42, 43, -1, 45, -1, 47,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
58, -1, -1, -1, -1, -1, 332, 257, 258, 259,
260, 261, 262, 263, 264, 265, 266, 267, 268, 269,
270, 271, 272, 273, 274, 275, 276, 277, 278, 279,
280, 281, 282, -1, 360, 361, 94, -1, -1, -1,
366, 367, 368, 369, 370, 371, -1, -1, -1, -1,
-1, 33, -1, -1, -1, -1, -1, -1, 40, -1,
-1, -1, -1, 45, -1, -1, 124, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 332, 257, 258, 259, 260, 261, 262, 263,
264, 265, 266, 267, 268, 269, 270, 271, 272, 273,
274, 275, 276, 277, 278, 279, 280, 281, 282, -1,
360, 361, -1, -1, -1, -1, 366, 367, 368, 369,
370, 371, 257, 258, 259, 260, 261, 262, 263, 264,
265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
275, 276, 277, 278, 279, 280, 281, 282, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 332, -1,
-1, -1, -1, -1, -1, -1, 33, -1, -1, -1,
-1, -1, -1, 40, -1, -1, -1, -1, 45, -1,
-1, -1, -1, -1, -1, -1, 360, 361, -1, -1,
-1, -1, 366, 367, 368, 369, 370, 371, -1, 257,
258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
278, 279, 280, 281, 282, 360, 361, -1, -1, -1,
-1, 366, 367, 368, 369, 370, 371, -1, -1, -1,
-1, -1, 33, -1, -1, -1, -1, -1, -1, 40,
-1, -1, -1, -1, 45, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, 332, 257, 258, 259, 260, 261,
262, 263, 264, 265, 266, 267, 268, 269, 270, 271,
272, 273, 274, 275, 276, 277, 278, 279, 280, 281,
282, -1, 360, 361, -1, -1, -1, -1, 366, 367,
368, 369, 370, 371, -1, -1, -1, -1, -1, -1,
378, 379, -1, -1, -1, -1, -1, -1, -1, -1,
312, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
332, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 7, 8, -1, -1, -1, -1, 360, 361,
15, -1, -1, -1, 366, 367, 368, 369, 370, 371,
257, 258, 259, 260, 261, 262, 263, 264, 265, 266,
267, 268, 269, 270, 271, 272, 273, 274, 275, 276,
277, 278, 279, 280, 281, 282, -1, 52, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, 332, 257, 258, 259, 260,
261, 262, 263, 264, 265, 266, 267, 268, 269, 270,
271, 272, 273, 274, 275, 276, 277, 278, 279, 280,
281, 282, -1, 360, 361, -1, -1, -1, -1, 366,
367, 368, 369, 370, 371, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, 151, -1, 153, 154,
-1, -1, -1, -1, 159, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
185, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, 197, -1, -1, -1, -1, -1, -1, 360,
361, -1, -1, -1, -1, 366, 367, 368, 369, 370,
371, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, 262, -1, -1,
-1, -1, 267, 268, 269, 270, 271, 272, 273, 274,
275, -1, 277, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, 303, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, 314,
};
2003-08-04 20:03:09 +04:00
#define YYFINAL 54
#ifndef YYDEBUG
#define YYDEBUG 0
#endif
2003-08-04 20:03:09 +04:00
#define YYMAXTOKEN 382
#if YYDEBUG
const char * const bxname[] = {
"end-of-file",0,0,0,0,0,0,0,0,0,"'\\n'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
2003-08-04 20:03:09 +04:00
0,0,"'!'",0,0,0,0,"'&'",0,"'('","')'","'*'","'+'",0,"'-'",0,"'/'",0,0,0,0,0,0,0,
0,0,0,"':'",0,0,"'='",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,"'^'",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"'|'",0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
2003-08-04 20:03:09 +04:00
0,0,0,0,0,0,0,0,0,0,"BX_TOKEN_REG_AL","BX_TOKEN_REG_BL","BX_TOKEN_REG_CL",
"BX_TOKEN_REG_DL","BX_TOKEN_REG_AH","BX_TOKEN_REG_BH","BX_TOKEN_REG_CH",
"BX_TOKEN_REG_DH","BX_TOKEN_REG_AX","BX_TOKEN_REG_BX","BX_TOKEN_REG_CX",
"BX_TOKEN_REG_DX","BX_TOKEN_REG_EAX","BX_TOKEN_REG_EBX","BX_TOKEN_REG_ECX",
"BX_TOKEN_REG_EDX","BX_TOKEN_REG_SI","BX_TOKEN_REG_DI","BX_TOKEN_REG_BP",
"BX_TOKEN_REG_SP","BX_TOKEN_REG_IP","BX_TOKEN_REG_ESI","BX_TOKEN_REG_EDI",
"BX_TOKEN_REG_EBP","BX_TOKEN_REG_ESP","BX_TOKEN_REG_EIP","BX_TOKEN_CONTINUE",
"BX_TOKEN_STEPN","BX_TOKEN_STEP_OVER","BX_TOKEN_NEXT_STEP","BX_TOKEN_SET",
"BX_TOKEN_DEBUGGER","BX_TOKEN_LIST_BREAK","BX_TOKEN_VBREAKPOINT",
"BX_TOKEN_LBREAKPOINT","BX_TOKEN_PBREAKPOINT","BX_TOKEN_DEL_BREAKPOINT",
"BX_TOKEN_ENABLE_BREAKPOINT","BX_TOKEN_DISABLE_BREAKPOINT","BX_TOKEN_INFO",
"BX_TOKEN_QUIT","BX_TOKEN_PROGRAM","BX_TOKEN_REGISTERS","BX_TOKEN_CPU",
"BX_TOKEN_FPU","BX_TOKEN_ALL","BX_TOKEN_IDT","BX_TOKEN_GDT","BX_TOKEN_LDT",
"BX_TOKEN_TSS","BX_TOKEN_DIRTY","BX_TOKEN_LINUX","BX_TOKEN_CONTROL_REGS",
"BX_TOKEN_EXAMINE","BX_TOKEN_XFORMAT","BX_TOKEN_DISFORMAT","BX_TOKEN_SETPMEM",
"BX_TOKEN_SYMBOLNAME","BX_TOKEN_QUERY","BX_TOKEN_PENDING","BX_TOKEN_TAKE",
"BX_TOKEN_DMA","BX_TOKEN_IRQ","BX_TOKEN_DUMP_CPU","BX_TOKEN_SET_CPU",
"BX_TOKEN_DIS","BX_TOKEN_ON","BX_TOKEN_OFF","BX_TOKEN_DISASSEMBLE",
"BX_TOKEN_INSTRUMENT","BX_TOKEN_START","BX_TOKEN_STOP","BX_TOKEN_RESET",
"BX_TOKEN_PRINT","BX_TOKEN_LOADER","BX_TOKEN_STRING","BX_TOKEN_DOIT",
"BX_TOKEN_CRC","BX_TOKEN_TRACEON","BX_TOKEN_TRACEOFF","BX_TOKEN_PTIME",
"BX_TOKEN_TIMEBP_ABSOLUTE","BX_TOKEN_TIMEBP","BX_TOKEN_RECORD",
"BX_TOKEN_PLAYBACK","BX_TOKEN_MODEBP","BX_TOKEN_PRINT_STACK","BX_TOKEN_WATCH",
"BX_TOKEN_UNWATCH","BX_TOKEN_READ","BX_TOKEN_WRITE","BX_TOKEN_SHOW",
"BX_TOKEN_SYMBOL","BX_TOKEN_SYMBOLS","BX_TOKEN_LIST_SYMBOLS","BX_TOKEN_GLOBAL",
"BX_TOKEN_WHERE","BX_TOKEN_PRINT_STRING","BX_TOKEN_DIFF_MEMORY",
"BX_TOKEN_SYNC_MEMORY","BX_TOKEN_SYNC_CPU","BX_TOKEN_FAST_FORWARD",
"BX_TOKEN_PHY_2_LOG","BX_TOKEN_NUMERIC","BX_TOKEN_LONG_NUMERIC",
2003-08-04 20:03:09 +04:00
"BX_TOKEN_INFO_ADDRESS","BX_TOKEN_NE2000","BX_TOKEN_PIC","BX_TOKEN_PAGE",
"BX_TOKEN_CS","BX_TOKEN_ES","BX_TOKEN_SS","BX_TOKEN_DS","BX_TOKEN_FS",
"BX_TOKEN_GS","BX_TOKEN_FLAGS","BX_TOKEN_ALWAYS_CHECK","BX_TOKEN_TRACEREGON",
"BX_TOKEN_TRACEREGOFF","BX_TOKEN_HELP","BX_TOKEN_CALC","BX_TOKEN_RSHIFT",
"BX_TOKEN_LSHIFT","BX_TOKEN_IVT","NOT","NEG",
};
const char * const bxrule[] = {
"$accept : command",
"command : continue_command",
"command : stepN_command",
2003-08-04 20:03:09 +04:00
"command : step_over_command",
"command : set_command",
2003-08-04 20:03:09 +04:00
"command : set_reg_command",
"command : breakpoint_command",
"command : info_command",
2003-08-04 20:03:09 +04:00
"command : blist_command",
"command : slist_command",
"command : dump_cpu_command",
"command : delete_command",
2003-08-04 20:03:09 +04:00
"command : bpe_command",
"command : bpd_command",
"command : quit_command",
"command : examine_command",
"command : setpmem_command",
"command : query_command",
"command : take_command",
"command : set_cpu_command",
"command : disassemble_command",
"command : instrument_command",
"command : loader_command",
"command : doit_command",
"command : crc_command",
"command : trace_on_command",
"command : trace_off_command",
"command : ptime_command",
"command : timebp_command",
"command : record_command",
"command : playback_command",
"command : modebp_command",
"command : print_stack_command",
"command : watch_point_command",
"command : show_command",
"command : symbol_command",
"command : where_command",
"command : print_string_command",
"command : cosim_commands",
"command : trace_reg_on_command",
"command : trace_reg_off_command",
"command : help_command",
2003-08-04 20:03:09 +04:00
"command : calc_command",
"command :",
"command : '\\n'",
"cosim_commands : BX_TOKEN_DIFF_MEMORY '\\n'",
"cosim_commands : BX_TOKEN_SYNC_MEMORY BX_TOKEN_ON '\\n'",
"cosim_commands : BX_TOKEN_SYNC_MEMORY BX_TOKEN_OFF '\\n'",
"cosim_commands : BX_TOKEN_SYNC_CPU BX_TOKEN_ON '\\n'",
"cosim_commands : BX_TOKEN_SYNC_CPU BX_TOKEN_OFF '\\n'",
"cosim_commands : BX_TOKEN_FAST_FORWARD BX_TOKEN_NUMERIC '\\n'",
"cosim_commands : BX_TOKEN_PHY_2_LOG BX_TOKEN_NUMERIC '\\n'",
"cosim_commands : BX_TOKEN_INFO_ADDRESS segment_register ':' BX_TOKEN_NUMERIC '\\n'",
"cosim_commands : BX_TOKEN_ALWAYS_CHECK BX_TOKEN_NUMERIC BX_TOKEN_ON '\\n'",
"cosim_commands : BX_TOKEN_ALWAYS_CHECK BX_TOKEN_NUMERIC BX_TOKEN_OFF '\\n'",
"segment_register : BX_TOKEN_CS",
"segment_register : BX_TOKEN_ES",
"segment_register : BX_TOKEN_SS",
"segment_register : BX_TOKEN_DS",
"segment_register : BX_TOKEN_FS",
"segment_register : BX_TOKEN_GS",
"timebp_command : BX_TOKEN_TIMEBP BX_TOKEN_LONG_NUMERIC '\\n'",
"timebp_command : BX_TOKEN_TIMEBP_ABSOLUTE BX_TOKEN_LONG_NUMERIC '\\n'",
"record_command : BX_TOKEN_RECORD BX_TOKEN_STRING '\\n'",
"playback_command : BX_TOKEN_PLAYBACK BX_TOKEN_STRING '\\n'",
"modebp_command : BX_TOKEN_MODEBP BX_TOKEN_STRING '\\n'",
"modebp_command : BX_TOKEN_MODEBP '\\n'",
"show_command : BX_TOKEN_SHOW BX_TOKEN_STRING '\\n'",
"show_command : BX_TOKEN_SHOW '\\n'",
"ptime_command : BX_TOKEN_PTIME '\\n'",
"trace_on_command : BX_TOKEN_TRACEON '\\n'",
"trace_off_command : BX_TOKEN_TRACEOFF '\\n'",
"print_stack_command : BX_TOKEN_PRINT_STACK '\\n'",
"print_stack_command : BX_TOKEN_PRINT_STACK BX_TOKEN_NUMERIC '\\n'",
"watch_point_command : BX_TOKEN_WATCH BX_TOKEN_STOP '\\n'",
"watch_point_command : BX_TOKEN_WATCH BX_TOKEN_CONTINUE '\\n'",
"watch_point_command : BX_TOKEN_WATCH '\\n'",
"watch_point_command : BX_TOKEN_UNWATCH '\\n'",
"watch_point_command : BX_TOKEN_WATCH BX_TOKEN_READ BX_TOKEN_NUMERIC '\\n'",
"watch_point_command : BX_TOKEN_UNWATCH BX_TOKEN_READ BX_TOKEN_NUMERIC '\\n'",
"watch_point_command : BX_TOKEN_WATCH BX_TOKEN_WRITE BX_TOKEN_NUMERIC '\\n'",
"watch_point_command : BX_TOKEN_UNWATCH BX_TOKEN_WRITE BX_TOKEN_NUMERIC '\\n'",
"symbol_command : BX_TOKEN_SYMBOL BX_TOKEN_STRING '\\n'",
"symbol_command : BX_TOKEN_SYMBOL BX_TOKEN_STRING BX_TOKEN_NUMERIC '\\n'",
"symbol_command : BX_TOKEN_SYMBOL BX_TOKEN_GLOBAL BX_TOKEN_STRING BX_TOKEN_NUMERIC '\\n'",
"where_command : BX_TOKEN_WHERE '\\n'",
"print_string_command : BX_TOKEN_PRINT_STRING BX_TOKEN_NUMERIC '\\n'",
"continue_command : BX_TOKEN_CONTINUE '\\n'",
"stepN_command : BX_TOKEN_STEPN '\\n'",
"stepN_command : BX_TOKEN_STEPN BX_TOKEN_NUMERIC '\\n'",
2003-08-04 20:03:09 +04:00
"step_over_command : BX_TOKEN_STEP_OVER '\\n'",
"set_command : BX_TOKEN_SET BX_TOKEN_DIS BX_TOKEN_ON '\\n'",
"set_command : BX_TOKEN_SET BX_TOKEN_DIS BX_TOKEN_OFF '\\n'",
"set_command : BX_TOKEN_SET BX_TOKEN_SYMBOLNAME '=' BX_TOKEN_NUMERIC '\\n'",
"breakpoint_command : BX_TOKEN_VBREAKPOINT '\\n'",
2003-08-04 20:03:09 +04:00
"breakpoint_command : BX_TOKEN_VBREAKPOINT vexpression ':' expression '\\n'",
"breakpoint_command : BX_TOKEN_LBREAKPOINT '\\n'",
2003-08-04 20:03:09 +04:00
"breakpoint_command : BX_TOKEN_LBREAKPOINT expression '\\n'",
"breakpoint_command : BX_TOKEN_LBREAKPOINT BX_TOKEN_STRING '\\n'",
"breakpoint_command : BX_TOKEN_PBREAKPOINT '\\n'",
2003-08-04 20:03:09 +04:00
"breakpoint_command : BX_TOKEN_PBREAKPOINT expression '\\n'",
"breakpoint_command : BX_TOKEN_PBREAKPOINT '*' expression '\\n'",
"blist_command : BX_TOKEN_LIST_BREAK '\\n'",
"slist_command : BX_TOKEN_LIST_SYMBOLS '\\n'",
"slist_command : BX_TOKEN_LIST_SYMBOLS BX_TOKEN_STRING '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_PBREAKPOINT '\\n'",
2003-08-04 20:03:09 +04:00
"info_command : BX_TOKEN_INFO BX_TOKEN_CPU '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_PROGRAM '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_REGISTERS '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_FPU '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_ALL '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_DIRTY '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_IDT optional_numeric_range '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_IVT optional_numeric_range '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_GDT optional_numeric_range '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_LDT optional_numeric_range '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_TSS optional_numeric_range '\\n'",
2003-08-04 20:03:09 +04:00
"info_command : BX_TOKEN_INFO BX_TOKEN_FLAGS '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_LINUX '\\n'",
2003-08-04 20:03:09 +04:00
"info_command : BX_TOKEN_INFO BX_TOKEN_SYMBOLS '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_SYMBOLS BX_TOKEN_STRING '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_CONTROL_REGS '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_NE2000 '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_NE2000 BX_TOKEN_PAGE BX_TOKEN_NUMERIC '\\n'",
"info_command : BX_TOKEN_INFO BX_TOKEN_NE2000 BX_TOKEN_PAGE BX_TOKEN_NUMERIC BX_TOKEN_REGISTERS BX_TOKEN_NUMERIC '\\n'",
2003-08-04 20:03:09 +04:00
"info_command : BX_TOKEN_INFO BX_TOKEN_PIC '\\n'",
"optional_numeric :",
"optional_numeric : BX_TOKEN_NUMERIC",
"optional_numeric_range :",
"optional_numeric_range : numeric_range",
2003-08-04 20:03:09 +04:00
"numeric_range : expression",
"numeric_range : expression expression",
"dump_cpu_command : BX_TOKEN_DUMP_CPU '\\n'",
"delete_command : BX_TOKEN_DEL_BREAKPOINT BX_TOKEN_NUMERIC '\\n'",
2003-08-04 20:03:09 +04:00
"bpe_command : BX_TOKEN_ENABLE_BREAKPOINT BX_TOKEN_NUMERIC '\\n'",
"bpd_command : BX_TOKEN_DISABLE_BREAKPOINT BX_TOKEN_NUMERIC '\\n'",
"quit_command : BX_TOKEN_QUIT '\\n'",
2003-08-04 20:03:09 +04:00
"examine_command : BX_TOKEN_EXAMINE BX_TOKEN_XFORMAT expression '\\n'",
"examine_command : BX_TOKEN_EXAMINE BX_TOKEN_XFORMAT '\\n'",
2003-08-04 20:03:09 +04:00
"examine_command : BX_TOKEN_EXAMINE expression '\\n'",
"examine_command : BX_TOKEN_EXAMINE '\\n'",
"setpmem_command : BX_TOKEN_SETPMEM BX_TOKEN_NUMERIC BX_TOKEN_NUMERIC BX_TOKEN_NUMERIC '\\n'",
"query_command : BX_TOKEN_QUERY BX_TOKEN_PENDING '\\n'",
"take_command : BX_TOKEN_TAKE BX_TOKEN_DMA '\\n'",
"take_command : BX_TOKEN_TAKE BX_TOKEN_DMA BX_TOKEN_NUMERIC '\\n'",
"take_command : BX_TOKEN_TAKE BX_TOKEN_IRQ '\\n'",
"set_cpu_command : BX_TOKEN_SET_CPU '\\n'",
"disassemble_command : BX_TOKEN_DISASSEMBLE optional_numeric_range '\\n'",
2003-08-04 20:03:09 +04:00
"disassemble_command : BX_TOKEN_DISASSEMBLE BX_TOKEN_DISFORMAT optional_numeric_range '\\n'",
"instrument_command : BX_TOKEN_INSTRUMENT BX_TOKEN_START '\\n'",
"instrument_command : BX_TOKEN_INSTRUMENT BX_TOKEN_STOP '\\n'",
"instrument_command : BX_TOKEN_INSTRUMENT BX_TOKEN_RESET '\\n'",
"instrument_command : BX_TOKEN_INSTRUMENT BX_TOKEN_PRINT '\\n'",
"loader_command : BX_TOKEN_LOADER BX_TOKEN_STRING '\\n'",
"doit_command : BX_TOKEN_DOIT BX_TOKEN_NUMERIC '\\n'",
"crc_command : BX_TOKEN_CRC BX_TOKEN_NUMERIC BX_TOKEN_NUMERIC '\\n'",
"trace_reg_on_command : BX_TOKEN_TRACEREGON '\\n'",
"trace_reg_off_command : BX_TOKEN_TRACEREGOFF '\\n'",
"help_command : BX_TOKEN_HELP BX_TOKEN_STRING '\\n'",
"help_command : BX_TOKEN_HELP '\\n'",
2003-08-04 20:03:09 +04:00
"calc_command : BX_TOKEN_CALC expression '\\n'",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_AL",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_BL",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_CL",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_DL",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_AH",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_BH",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_CH",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_DH",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_AX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_BX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_CX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_DX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_EAX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_EBX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_ECX",
"BX_TOKEN_COMMON_REG : BX_TOKEN_REG_EDX",
"BX_TOKEN_INDEX_REG : BX_TOKEN_REG_SI",
"BX_TOKEN_INDEX_REG : BX_TOKEN_REG_DI",
"BX_TOKEN_INDEX_REG : BX_TOKEN_REG_ESI",
"BX_TOKEN_INDEX_REG : BX_TOKEN_REG_EDI",
"BX_TOKEN_PTR_REG : BX_TOKEN_REG_BP",
"BX_TOKEN_PTR_REG : BX_TOKEN_REG_SP",
"BX_TOKEN_PTR_REG : BX_TOKEN_REG_IP",
"BX_TOKEN_PTR_REG : BX_TOKEN_REG_EBP",
"BX_TOKEN_PTR_REG : BX_TOKEN_REG_ESP",
"BX_TOKEN_PTR_REG : BX_TOKEN_REG_EIP",
"BX_TOKEN_NONSEG_REG : BX_TOKEN_COMMON_REG",
"BX_TOKEN_NONSEG_REG : BX_TOKEN_INDEX_REG",
"BX_TOKEN_NONSEG_REG : BX_TOKEN_PTR_REG",
"vexpression : BX_TOKEN_NUMERIC",
"vexpression : BX_TOKEN_LONG_NUMERIC",
"vexpression : BX_TOKEN_NONSEG_REG",
"vexpression : segment_register",
"vexpression : vexpression '+' vexpression",
"vexpression : vexpression '-' vexpression",
"vexpression : vexpression '*' vexpression",
"vexpression : vexpression '/' vexpression",
"vexpression : vexpression BX_TOKEN_RSHIFT vexpression",
"vexpression : vexpression BX_TOKEN_LSHIFT vexpression",
"vexpression : vexpression '|' vexpression",
"vexpression : vexpression '^' vexpression",
"vexpression : vexpression '&' vexpression",
"vexpression : '!' vexpression",
"vexpression : '-' vexpression",
"vexpression : '(' vexpression ')'",
"expression : BX_TOKEN_NUMERIC",
"expression : BX_TOKEN_LONG_NUMERIC",
"expression : BX_TOKEN_STRING",
"expression : BX_TOKEN_NONSEG_REG",
"expression : segment_register",
"expression : expression ':' expression",
"expression : expression '+' expression",
"expression : expression '-' expression",
"expression : expression '*' expression",
"expression : expression '/' expression",
"expression : expression BX_TOKEN_RSHIFT expression",
"expression : expression BX_TOKEN_LSHIFT expression",
"expression : expression '|' expression",
"expression : expression '^' expression",
"expression : expression '&' expression",
"expression : '!' expression",
"expression : '-' expression",
"expression : '(' expression ')'",
"set_reg_command : BX_TOKEN_REGISTERS BX_TOKEN_NONSEG_REG '=' expression '\\n'",
};
#endif
#if YYDEBUG
#include <stdio.h>
#endif
#ifdef YYSTACKSIZE
#undef YYMAXDEPTH
#define YYMAXDEPTH YYSTACKSIZE
#else
#ifdef YYMAXDEPTH
#define YYSTACKSIZE YYMAXDEPTH
#else
#define YYSTACKSIZE 10000
#define YYMAXDEPTH 10000
#endif
#endif
#define YYINITSTACKSIZE 200
int yydebug;
int yynerrs;
int yyerrflag;
int yychar;
short *yyssp;
YYSTYPE *yyvsp;
YYSTYPE yyval;
YYSTYPE yylval;
short *yyss;
short *yysslim;
YYSTYPE *yyvs;
int yystacksize;
/* allocate initial stack or double stack size, up to YYMAXDEPTH */
static int yygrowstack()
{
int newsize, i;
short *newss;
YYSTYPE *newvs;
if ((newsize = yystacksize) == 0)
newsize = YYINITSTACKSIZE;
else if (newsize >= YYMAXDEPTH)
return -1;
else if ((newsize *= 2) > YYMAXDEPTH)
newsize = YYMAXDEPTH;
i = yyssp - yyss;
newss = yyss ? (short *)realloc(yyss, newsize * sizeof *newss) :
(short *)malloc(newsize * sizeof *newss);
if (newss == NULL)
return -1;
yyss = newss;
yyssp = newss + i;
newvs = yyvs ? (YYSTYPE *)realloc(yyvs, newsize * sizeof *newvs) :
(YYSTYPE *)malloc(newsize * sizeof *newvs);
if (newvs == NULL)
return -1;
yyvs = newvs;
yyvsp = newvs + i;
yystacksize = newsize;
yysslim = yyss + newsize - 1;
return 0;
}
#define YYABORT goto yyabort
#define YYREJECT goto yyabort
#define YYACCEPT goto yyaccept
#define YYERROR goto yyerrlab
#ifndef YYPARSE_PARAM
#if defined(__cplusplus) || __STDC__
#define YYPARSE_PARAM_ARG void
#define YYPARSE_PARAM_DECL
#else /* ! ANSI-C/C++ */
#define YYPARSE_PARAM_ARG
#define YYPARSE_PARAM_DECL
#endif /* ANSI-C/C++ */
#else /* YYPARSE_PARAM */
#ifndef YYPARSE_PARAM_TYPE
#define YYPARSE_PARAM_TYPE void *
#endif
#if defined(__cplusplus) || __STDC__
#define YYPARSE_PARAM_ARG YYPARSE_PARAM_TYPE YYPARSE_PARAM
#define YYPARSE_PARAM_DECL
#else /* ! ANSI-C/C++ */
#define YYPARSE_PARAM_ARG YYPARSE_PARAM
#define YYPARSE_PARAM_DECL YYPARSE_PARAM_TYPE YYPARSE_PARAM;
#endif /* ANSI-C/C++ */
#endif /* ! YYPARSE_PARAM */
int
yyparse (YYPARSE_PARAM_ARG)
YYPARSE_PARAM_DECL
{
register int yym, yyn, yystate;
#if YYDEBUG
register const char *yys;
if ((yys = getenv("YYDEBUG")))
{
yyn = *yys;
if (yyn >= '0' && yyn <= '9')
yydebug = yyn - '0';
}
#endif
yynerrs = 0;
yyerrflag = 0;
yychar = (-1);
if (yyss == NULL && yygrowstack()) goto yyoverflow;
yyssp = yyss;
yyvsp = yyvs;
*yyssp = yystate = 0;
yyloop:
if ((yyn = yydefred[yystate])) goto yyreduce;
if (yychar < 0)
{
if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("%sdebug: state %d, reading %d (%s)\n",
YYPREFIX, yystate, yychar, yys);
}
#endif
}
if ((yyn = yysindex[yystate]) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, shifting to state %d\n",
YYPREFIX, yystate, yytable[yyn]);
#endif
if (yyssp >= yysslim && yygrowstack())
{
goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
*++yyvsp = yylval;
yychar = (-1);
if (yyerrflag > 0) --yyerrflag;
goto yyloop;
}
if ((yyn = yyrindex[yystate]) && (yyn += yychar) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yychar)
{
yyn = yytable[yyn];
goto yyreduce;
}
if (yyerrflag) goto yyinrecovery;
#if defined(lint) || defined(__GNUC__)
goto yynewerror;
#endif
yynewerror:
yyerror("syntax error");
#if defined(lint) || defined(__GNUC__)
goto yyerrlab;
#endif
yyerrlab:
++yynerrs;
yyinrecovery:
if (yyerrflag < 3)
{
yyerrflag = 3;
for (;;)
{
if ((yyn = yysindex[*yyssp]) && (yyn += YYERRCODE) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, error recovery shifting\
to state %d\n", YYPREFIX, *yyssp, yytable[yyn]);
#endif
if (yyssp >= yysslim && yygrowstack())
{
goto yyoverflow;
}
*++yyssp = yystate = yytable[yyn];
*++yyvsp = yylval;
goto yyloop;
}
else
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: error recovery discarding state %d\n",
YYPREFIX, *yyssp);
#endif
if (yyssp <= yyss) goto yyabort;
--yyssp;
--yyvsp;
}
}
}
else
{
if (yychar == 0) goto yyabort;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("%sdebug: state %d, error recovery discards token %d (%s)\n",
YYPREFIX, yystate, yychar, yys);
}
#endif
yychar = (-1);
goto yyloop;
}
yyreduce:
#if YYDEBUG
if (yydebug)
printf("%sdebug: state %d, reducing by rule %d (%s)\n",
YYPREFIX, yystate, yyn, yyrule[yyn]);
#endif
yym = yylen[yyn];
yyval = yyvsp[1-yym];
switch (yyn)
{
2003-08-04 20:03:09 +04:00
case 44:
#line 215 "parser.y"
{
}
break;
2003-08-04 20:03:09 +04:00
case 45:
#line 221 "parser.y"
{
bx_dbg_diff_memory();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 46:
#line 226 "parser.y"
{
bx_dbg_sync_memory(1);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 47:
#line 231 "parser.y"
{
bx_dbg_sync_memory(0);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 48:
#line 236 "parser.y"
{
bx_dbg_sync_cpu(1);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 49:
#line 241 "parser.y"
{
bx_dbg_sync_cpu(0);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 50:
#line 246 "parser.y"
{
free(yyvsp[-2].sval);
bx_dbg_fast_forward(yyvsp[-1].uval);
}
break;
2003-08-04 20:03:09 +04:00
case 51:
#line 251 "parser.y"
{
}
break;
2003-08-04 20:03:09 +04:00
case 52:
#line 254 "parser.y"
{
free(yyvsp[-4].sval);
bx_dbg_info_address(yyvsp[-3].uval, yyvsp[-1].uval);
}
break;
2003-08-04 20:03:09 +04:00
case 53:
#line 259 "parser.y"
{
}
break;
2003-08-04 20:03:09 +04:00
case 54:
#line 262 "parser.y"
{
}
break;
2003-08-04 20:03:09 +04:00
case 55:
#line 267 "parser.y"
{ yyval.uval = 1; }
break;
2003-08-04 20:03:09 +04:00
case 56:
#line 268 "parser.y"
{ yyval.uval = 0; }
break;
2003-08-04 20:03:09 +04:00
case 57:
#line 269 "parser.y"
{ yyval.uval = 2; }
break;
2003-08-04 20:03:09 +04:00
case 58:
#line 270 "parser.y"
{ yyval.uval = 3; }
break;
2003-08-04 20:03:09 +04:00
case 59:
#line 271 "parser.y"
{ yyval.uval = 4; }
break;
2003-08-04 20:03:09 +04:00
case 60:
#line 272 "parser.y"
{ yyval.uval = 5; }
break;
2003-08-04 20:03:09 +04:00
case 61:
#line 277 "parser.y"
{
bx_dbg_timebp_command(0, yyvsp[-1].ulval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 62:
#line 282 "parser.y"
{
bx_dbg_timebp_command(1, yyvsp[-1].ulval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 63:
#line 290 "parser.y"
{
bx_dbg_record_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 64:
#line 298 "parser.y"
{
bx_dbg_playback_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 65:
#line 306 "parser.y"
{
bx_dbg_modebp_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 66:
#line 311 "parser.y"
{
bx_dbg_modebp_command(0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 67:
#line 319 "parser.y"
{
bx_dbg_show_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 68:
#line 324 "parser.y"
{
bx_dbg_show_command(0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 69:
#line 332 "parser.y"
{
bx_dbg_ptime_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 70:
#line 340 "parser.y"
{
bx_dbg_trace_on_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 71:
#line 348 "parser.y"
{
bx_dbg_trace_off_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 72:
#line 356 "parser.y"
{
bx_dbg_print_stack_command(16);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 73:
#line 361 "parser.y"
{
bx_dbg_print_stack_command(yyvsp[-1].uval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 74:
#line 369 "parser.y"
{
watchpoint_continue = 0;
fprintf(stderr, "Will stop on watch points\n");
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 75:
#line 375 "parser.y"
{
watchpoint_continue = 1;
fprintf(stderr, "Will not stop on watch points (they will still be logged)\n");
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 76:
#line 381 "parser.y"
{
bx_dbg_watch(-1, 0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 77:
#line 386 "parser.y"
{
bx_dbg_unwatch(-1, 0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 78:
#line 391 "parser.y"
{
bx_dbg_watch(1, yyvsp[-1].uval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 79:
#line 396 "parser.y"
{
bx_dbg_unwatch(1, yyvsp[-1].uval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 80:
#line 401 "parser.y"
{
bx_dbg_watch(0, yyvsp[-1].uval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 81:
#line 406 "parser.y"
{
bx_dbg_unwatch(0, yyvsp[-1].uval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 82:
#line 414 "parser.y"
{
bx_dbg_symbol_command(yyvsp[-1].sval, 0, 0);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 83:
#line 419 "parser.y"
{
bx_dbg_symbol_command(yyvsp[-2].sval, 0, yyvsp[-1].uval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 84:
#line 424 "parser.y"
{
bx_dbg_symbol_command(yyvsp[-2].sval, 1, yyvsp[-1].uval);
free(yyvsp[-4].sval); free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 85:
#line 432 "parser.y"
{
bx_dbg_where_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 86:
#line 440 "parser.y"
{
bx_dbg_print_string_command(yyvsp[-1].uval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 87:
#line 448 "parser.y"
{
bx_dbg_continue_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 88:
#line 456 "parser.y"
{
bx_dbg_stepN_command(1);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 89:
#line 461 "parser.y"
{
bx_dbg_stepN_command(yyvsp[-1].uval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 90:
#line 469 "parser.y"
{
bx_dbg_step_over_command();
free(yyvsp[-1].sval);
}
break;
case 91:
#line 477 "parser.y"
{
bx_dbg_set_command(yyvsp[-3].sval, yyvsp[-2].sval, yyvsp[-1].sval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 92:
#line 482 "parser.y"
{
bx_dbg_set_command(yyvsp[-3].sval, yyvsp[-2].sval, yyvsp[-1].sval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 93:
#line 487 "parser.y"
{
bx_dbg_set_symbol_command(yyvsp[-3].sval, yyvsp[-1].uval);
free(yyvsp[-4].sval); free(yyvsp[-3].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 94:
#line 495 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_vbreakpoint_command(bkAtIP, 0, 0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 95:
#line 500 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_vbreakpoint_command(bkRegular, yyvsp[-3].ulval, yyvsp[-1].ulval);
free(yyvsp[-4].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 96:
#line 505 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_lbreakpoint_command(bkAtIP, 0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 97:
#line 510 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_lbreakpoint_command(bkRegular, yyvsp[-1].ulval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 98:
#line 515 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_lbreakpoint_symbol_command(yyvsp[-1].sval);
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
}
break;
case 99:
#line 520 "parser.y"
{
bx_dbg_pbreakpoint_command(bkAtIP, 0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 100:
#line 525 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_pbreakpoint_command(bkRegular, yyvsp[-1].ulval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 101:
#line 530 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_pbreakpoint_command(bkRegular, yyvsp[-1].ulval);
free(yyvsp[-3].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 102:
#line 538 "parser.y"
{
bx_dbg_info_bpoints_command();
free(yyvsp[-1].sval);
}
break;
case 103:
#line 546 "parser.y"
{
bx_dbg_info_symbols_command(0);
free(yyvsp[-1].sval);
}
break;
case 104:
#line 551 "parser.y"
{
bx_dbg_info_symbols_command(yyvsp[-1].sval);
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
}
break;
case 105:
#line 559 "parser.y"
{
bx_dbg_info_bpoints_command();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 106:
#line 564 "parser.y"
{
bx_dbg_dump_cpu_command();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
case 107:
#line 569 "parser.y"
{
bx_dbg_info_program_command();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 108:
#line 574 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_CPU_REGS);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 109:
#line 579 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_FPU_REGS);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 110:
#line 584 "parser.y"
{
bx_dbg_info_registers_command(BX_INFO_CPU_REGS | BX_INFO_FPU_REGS);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 111:
#line 589 "parser.y"
{
bx_dbg_info_dirty_command();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 112:
#line 594 "parser.y"
{
bx_dbg_info_idt_command(yyvsp[-1].uval_range);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 113:
#line 599 "parser.y"
{
bx_dbg_info_ivt_command(yyvsp[-1].uval_range);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 114:
#line 604 "parser.y"
{
bx_dbg_info_gdt_command(yyvsp[-1].uval_range);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 115:
#line 609 "parser.y"
{
bx_dbg_info_ldt_command(yyvsp[-1].uval_range);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 116:
#line 614 "parser.y"
{
bx_dbg_info_tss_command(yyvsp[-1].uval_range);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 117:
#line 619 "parser.y"
{
bx_dbg_info_flags();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
case 118:
#line 624 "parser.y"
{
bx_dbg_info_linux_command();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 119:
#line 629 "parser.y"
{
bx_dbg_info_symbols_command(0);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
case 120:
#line 634 "parser.y"
{
bx_dbg_info_symbols_command(yyvsp[-1].sval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
case 121:
#line 639 "parser.y"
{
bx_dbg_info_control_regs_command();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 122:
#line 644 "parser.y"
{
bx_dbg_info_ne2k(-1, -1);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 123:
#line 649 "parser.y"
{
free(yyvsp[-4].sval); free(yyvsp[-3].sval); free(yyvsp[-2].sval);
bx_dbg_info_ne2k(yyvsp[-1].uval, -1);
}
break;
2003-08-04 20:03:09 +04:00
case 124:
#line 654 "parser.y"
{
free(yyvsp[-6].sval); free(yyvsp[-5].sval); free(yyvsp[-4].sval); free(yyvsp[-2].sval);
bx_dbg_info_ne2k(yyvsp[-3].uval, yyvsp[-1].uval);
}
break;
2003-08-04 20:03:09 +04:00
case 125:
#line 659 "parser.y"
{
bx_dbg_info_pic();
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
case 126:
#line 666 "parser.y"
{ yyval.uval = EMPTY_ARG; }
break;
2003-08-04 20:03:09 +04:00
case 128:
#line 670 "parser.y"
{ yyval.uval_range = make_num_range (EMPTY_ARG, EMPTY_ARG); }
break;
2003-08-04 20:03:09 +04:00
case 130:
#line 675 "parser.y"
{
2003-08-04 20:03:09 +04:00
yyval.uval_range = make_num_range (yyvsp[0].ulval, yyvsp[0].ulval);
}
break;
2003-08-04 20:03:09 +04:00
case 131:
#line 680 "parser.y"
{
2003-08-04 20:03:09 +04:00
yyval.uval_range = make_num_range (yyvsp[-1].ulval, yyvsp[0].ulval);
}
break;
2003-08-04 20:03:09 +04:00
case 132:
#line 687 "parser.y"
{
bx_dbg_dump_cpu_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 133:
#line 695 "parser.y"
{
bx_dbg_del_breakpoint_command(yyvsp[-1].uval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 134:
#line 703 "parser.y"
{
bx_dbg_en_dis_breakpoint_command(yyvsp[-1].uval, 1);
free(yyvsp[-2].sval);
}
break;
case 135:
#line 710 "parser.y"
{
bx_dbg_en_dis_breakpoint_command(yyvsp[-1].uval, 0);
free(yyvsp[-2].sval);
}
break;
case 136:
#line 718 "parser.y"
{
bx_dbg_quit_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 137:
#line 727 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_examine_command(yyvsp[-3].sval, yyvsp[-2].sval,1, yyvsp[-1].ulval,1, 0);
#if BX_NUM_SIMULATORS >= 2
2003-08-04 20:03:09 +04:00
bx_dbg_examine_command(yyvsp[-3].sval, yyvsp[-2].sval,1, yyvsp[-1].ulval,1, 1);
#endif
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 138:
#line 735 "parser.y"
{
bx_dbg_examine_command(yyvsp[-2].sval, yyvsp[-1].sval,1, 0,0, 0);
#if BX_NUM_SIMULATORS >= 2
bx_dbg_examine_command(yyvsp[-2].sval, yyvsp[-1].sval,1, 0,0, 1);
#endif
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 139:
#line 743 "parser.y"
{
/*FIXME HanishKVC This method of hunting thro all the */
/* simulators may be better than using 2 calls if */
/* BX_NUM_SIMULATORS greater than or equal to 2 as */
/* done for other cases of BX_TOKEN_EXAMINE*/
int iCurSim;
for(iCurSim = 0; iCurSim < BX_NUM_SIMULATORS; iCurSim++)
{
2003-08-04 20:03:09 +04:00
bx_dbg_examine_command(yyvsp[-2].sval, NULL,0, yyvsp[-1].ulval,1, iCurSim);
}
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 140:
#line 756 "parser.y"
{
/*FIXME HanishKVC This method of hunting thro all the */
/* simulators may be better than using 2 calls if */
/* BX_NUM_SIMULATORS greater than or equal to 2 as */
/* done for other cases of BX_TOKEN_EXAMINE*/
int iCurSim;
for(iCurSim = 0; iCurSim < BX_NUM_SIMULATORS; iCurSim++)
{
bx_dbg_examine_command(yyvsp[-1].sval, NULL,0, 0,0, iCurSim);
}
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 141:
#line 772 "parser.y"
{
bx_dbg_setpmem_command(yyvsp[-3].uval, yyvsp[-2].uval, yyvsp[-1].uval);
free(yyvsp[-4].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 142:
#line 780 "parser.y"
{
bx_dbg_query_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 143:
#line 788 "parser.y"
{
bx_dbg_take_command(yyvsp[-1].sval, 1);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 144:
#line 793 "parser.y"
{
bx_dbg_take_command(yyvsp[-2].sval, yyvsp[-1].uval);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 145:
#line 798 "parser.y"
{
bx_dbg_take_command(yyvsp[-1].sval, 1);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 146:
#line 806 "parser.y"
{
bx_dbg_set_cpu_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 147:
#line 814 "parser.y"
{
2003-08-04 20:03:09 +04:00
bx_dbg_disassemble_command(NULL, yyvsp[-1].uval_range);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 148:
#line 819 "parser.y"
{
bx_dbg_disassemble_command(yyvsp[-2].sval, yyvsp[-1].uval_range);
free(yyvsp[-3].sval); free(yyvsp[-2].sval);
}
break;
case 149:
#line 827 "parser.y"
{
bx_dbg_instrument_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 150:
#line 832 "parser.y"
{
bx_dbg_instrument_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 151:
#line 837 "parser.y"
{
bx_dbg_instrument_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 152:
#line 842 "parser.y"
{
bx_dbg_instrument_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 153:
#line 850 "parser.y"
{
bx_dbg_loader_command(yyvsp[-1].sval);
free(yyvsp[-2].sval); free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 154:
#line 858 "parser.y"
{
bx_dbg_doit_command(yyvsp[-1].uval);
free(yyvsp[-2].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 155:
#line 866 "parser.y"
{
bx_dbg_crc_command(yyvsp[-2].uval, yyvsp[-1].uval);
free(yyvsp[-3].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 156:
#line 874 "parser.y"
{
bx_dbg_trace_reg_on_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 157:
#line 882 "parser.y"
{
bx_dbg_trace_reg_off_command();
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 158:
#line 890 "parser.y"
{
bx_dbg_help_command(yyvsp[-1].sval);
free(yyvsp[-2].sval);free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 159:
#line 895 "parser.y"
{
bx_dbg_help_command(0);
free(yyvsp[-1].sval);
}
break;
2003-08-04 20:03:09 +04:00
case 160:
#line 903 "parser.y"
{
bx_dbg_calc_command(yyvsp[-1].ulval);
free(yyvsp[-2].sval);
}
break;
case 176:
#line 926 "parser.y"
{ yyval.reg=yyvsp[0].reg; }
break;
case 180:
#line 934 "parser.y"
{ yyval.reg=yyvsp[0].reg; }
break;
case 186:
#line 944 "parser.y"
{ yyval.reg=yyvsp[0].reg; }
break;
case 189:
#line 951 "parser.y"
{ yyval.reg=yyvsp[0].reg; }
break;
case 190:
#line 956 "parser.y"
{ yyval.ulval = yyvsp[0].uval; }
break;
case 191:
#line 957 "parser.y"
{ yyval.ulval = yyvsp[0].ulval; }
break;
case 192:
#line 958 "parser.y"
{ yyval.ulval = bx_dbg_get_reg_value(yyvsp[0].reg); }
break;
case 193:
#line 959 "parser.y"
{ yyval.ulval = bx_dbg_get_selector_value(yyvsp[0].uval); }
break;
case 194:
#line 960 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval + yyvsp[0].ulval; }
break;
case 195:
#line 961 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval - yyvsp[0].ulval; }
break;
case 196:
#line 962 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval * yyvsp[0].ulval; }
break;
case 197:
#line 963 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval / yyvsp[0].ulval; }
break;
case 198:
#line 964 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval >> yyvsp[0].ulval; }
break;
case 199:
#line 965 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval << yyvsp[0].ulval; }
break;
case 200:
#line 966 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval | yyvsp[0].ulval; }
break;
case 201:
#line 967 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval ^ yyvsp[0].ulval; }
break;
case 202:
#line 968 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval & yyvsp[0].ulval; }
break;
case 203:
#line 969 "parser.y"
{ yyval.ulval = !yyvsp[0].ulval; }
break;
case 204:
#line 970 "parser.y"
{ yyval.ulval = -yyvsp[0].ulval; }
break;
case 205:
#line 971 "parser.y"
{ yyval.ulval = yyvsp[-1].ulval; }
break;
case 206:
#line 976 "parser.y"
{ yyval.ulval = yyvsp[0].uval; }
break;
case 207:
#line 977 "parser.y"
{ yyval.ulval = yyvsp[0].ulval; }
break;
case 208:
#line 978 "parser.y"
{ yyval.ulval = bx_dbg_get_symbol_value(yyvsp[0].sval); free(yyvsp[0].sval);}
break;
case 209:
#line 979 "parser.y"
{ yyval.ulval = bx_dbg_get_reg_value(yyvsp[0].reg);}
break;
case 210:
#line 980 "parser.y"
{ yyval.ulval = bx_dbg_get_selector_value(yyvsp[0].uval);}
break;
case 211:
#line 981 "parser.y"
{ yyval.ulval = bx_dbg_get_laddr (yyvsp[-2].ulval, yyvsp[0].ulval); }
break;
case 212:
#line 982 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval + yyvsp[0].ulval; }
break;
case 213:
#line 983 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval - yyvsp[0].ulval; }
break;
case 214:
#line 984 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval * yyvsp[0].ulval; }
break;
case 215:
#line 985 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval / yyvsp[0].ulval; }
break;
case 216:
#line 986 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval >> yyvsp[0].ulval; }
break;
case 217:
#line 987 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval << yyvsp[0].ulval; }
break;
case 218:
#line 988 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval | yyvsp[0].ulval; }
break;
case 219:
#line 989 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval ^ yyvsp[0].ulval; }
break;
case 220:
#line 990 "parser.y"
{ yyval.ulval = yyvsp[-2].ulval & yyvsp[0].ulval; }
break;
case 221:
#line 991 "parser.y"
{ yyval.ulval = !yyvsp[0].ulval; }
break;
case 222:
#line 992 "parser.y"
{ yyval.ulval = -yyvsp[0].ulval; }
break;
case 223:
#line 993 "parser.y"
{ yyval.ulval = yyvsp[-1].ulval; }
break;
case 224:
#line 998 "parser.y"
{ bx_dbg_set_reg_value(yyvsp[-3].reg, yyvsp[-1].ulval); }
break;
#line 2370 "y.tab.c"
}
yyssp -= yym;
yystate = *yyssp;
yyvsp -= yym;
yym = yylhs[yyn];
if (yystate == 0 && yym == 0)
{
#if YYDEBUG
if (yydebug)
printf("%sdebug: after reduction, shifting from state 0 to\
state %d\n", YYPREFIX, YYFINAL);
#endif
yystate = YYFINAL;
*++yyssp = YYFINAL;
*++yyvsp = yyval;
if (yychar < 0)
{
if ((yychar = yylex()) < 0) yychar = 0;
#if YYDEBUG
if (yydebug)
{
yys = 0;
if (yychar <= YYMAXTOKEN) yys = yyname[yychar];
if (!yys) yys = "illegal-symbol";
printf("%sdebug: state %d, reading %d (%s)\n",
YYPREFIX, YYFINAL, yychar, yys);
}
#endif
}
if (yychar == 0) goto yyaccept;
goto yyloop;
}
if ((yyn = yygindex[yym]) && (yyn += yystate) >= 0 &&
yyn <= YYTABLESIZE && yycheck[yyn] == yystate)
yystate = yytable[yyn];
else
yystate = yydgoto[yym];
#if YYDEBUG
if (yydebug)
printf("%sdebug: after reduction, shifting from state %d \
to state %d\n", YYPREFIX, *yyssp, yystate);
#endif
if (yyssp >= yysslim && yygrowstack())
{
goto yyoverflow;
}
*++yyssp = yystate;
*++yyvsp = yyval;
goto yyloop;
yyoverflow:
yyerror("yacc stack overflow");
yyabort:
return (1);
yyaccept:
return (0);
}
- apply patch.ifdef-disabled-options. Comments from that patch are below: For a whole lot of configure options, I put #if...#endif around code that is specific to the option, even in files which are normally only compiled when the option is on. This allows me to create a MS Visual C++ 6.0 workspace that supports many of these options. The workspace will basically compile every file all the time, but the code for disabled options will be commented out by the #if...#endif. This may one day lead to simplification of the Makefiles and configure scripts, but for the moment I'm leaving Makefiles and configure scripts alone. Affected options: BX_SUPPORT_APIC (cpu/apic.cc) BX_SUPPORT_X86_64 (cpu/*64.cc) BX_DEBUGGER (debug/*) BX_DISASM (disasm/*) BX_WITH_nameofgui (gui/*) BX_SUPPORT_CDROM (iodev/cdrom.cc) BX_NE2K_SUPPORT (iodev/eth*.cc, iodev/ne2k.cc) BX_SUPPORT_APIC (iodev/ioapic.cc) BX_IODEBUG_SUPPORT (iodev/iodebug.cc) BX_PCI_SUPPORT (iodev/pci*.cc) BX_SUPPORT_SB16 (iodev/sb*.cc) Modified Files: cpu/apic.cc cpu/arith64.cc cpu/ctrl_xfer64.cc cpu/data_xfer64.cc cpu/fetchdecode64.cc cpu/logical64.cc cpu/mult64.cc cpu/resolve64.cc cpu/shift64.cc cpu/stack64.cc debug/Makefile.in debug/crc.cc debug/dbg_main.cc debug/lexer.l debug/linux.cc debug/parser.c debug/parser.y disasm/dis_decode.cc disasm/dis_groups.cc gui/amigaos.cc gui/beos.cc gui/carbon.cc gui/macintosh.cc gui/rfb.cc gui/sdl.cc gui/term.cc gui/win32.cc gui/wx.cc gui/wxdialog.cc gui/wxmain.cc gui/x.cc iodev/cdrom.cc iodev/eth.cc iodev/eth_arpback.cc iodev/eth_fbsd.cc iodev/eth_linux.cc iodev/eth_null.cc iodev/eth_packetmaker.cc iodev/eth_tap.cc iodev/eth_tuntap.cc iodev/eth_win32.cc iodev/ioapic.cc iodev/iodebug.cc iodev/ne2k.cc iodev/pci.cc iodev/pci2isa.cc iodev/sb16.cc iodev/soundlnx.cc iodev/soundwin.cc
2002-11-19 08:47:45 +03:00
#endif /* if BX_DEBUGGER */
/* The #endif is appended by the makefile after running yacc. */