⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 y.tab.c

📁 用汇编语言编程源代码
💻 C
📖 第 1 页 / 共 5 页
字号:
/* return (0) */#define LINE_PARSE_DONE YYACCEPT/* return (1) */#define FILE_PARSE_DONE YYABORTtypedef struct ll{  label *head;  struct ll *tail;} label_list;/* Exported Variables: */int data_dir;			/* Non-zero means item in data segment */int text_dir;			/* Non-zero means item in text segment */int parse_error_occurred;  /* Non-zero => parse resulted in error *//* Local functions: */#ifdef __STDC__static imm_expr *branch_offset (int n_inst);static void check_imm_range (imm_expr*, int32, int32);static void check_uimm_range (imm_expr*, uint32, uint32);static void clear_labels (void);static label_list *cons_label (label *head, label_list *tail);static void div_inst (int op, int rd, int rs, int rt, int const_divisor);static void mult_inst (int op, int rd, int rs, int rt);static void nop_inst (void);static void set_eq_inst (int op, int rd, int rs, int rt);static void set_ge_inst (int op, int rd, int rs, int rt);static void set_gt_inst (int op, int rd, int rs, int rt);static void set_le_inst (int op, int rd, int rs, int rt);static void store_word_data (int value);static void trap_inst (void);static void yywarn (char*);#elsestatic imm_expr *branch_offset ();static void check_imm_range();static void check_uimm_range();static void clear_labels ();static label_list *cons_label ();static void div_inst ();static void mult_inst ();static void nop_inst ();static void set_eq_inst ();static void set_ge_inst ();static void set_gt_inst ();static void set_le_inst ();static void store_word_data ();static void trap_inst ();static void yywarn ();#endif/* Local variables: */static int null_term;		/* Non-zero means string terminate by \0 */static void (*store_op) ();	/* Function to store items in an EXPR_LST */static label_list *this_line_labels = NULL; /* List of label for curent line */static int noat_flag = 0;	/* Non-zero means program can use $1 */static char *input_file_name;	/* Name of file being parsed */#ifndef YYSTYPE#define YYSTYPE int#endif#include <stdio.h>#ifndef __cplusplus#ifndef __STDC__#define const#endif#endif#define	YYFINAL		601#define	YYFLAG		-32768#define	YYNTBASE	261#define YYTRANSLATE(x) ((unsigned)(x) <= 507 ? yytranslate[x] : 355)static const short yytranslate[] = {     0,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,   256,   257,     2,   258,     2,   259,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,   254,     2,     2,   255,   260,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     2,     1,     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,    43,    44,    45,    46,    47,    48,    49,    50,    51,    52,    53,    54,    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,    97,    98,    99,   100,   101,   102,   103,   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,   132,   133,   134,   135,   136,   137,   138,   139,   140,   141,   142,   143,   144,   145,   146,   147,   148,   149,   150,   151,   152,   153,   154,   155,   156,   157,   158,   159,   160,   161,   162,   163,   164,   165,   166,   167,   168,   169,   170,   171,   172,   173,   174,   175,   176,   177,   178,   179,   180,   181,   182,   183,   184,   185,   186,   187,   188,   189,   190,   191,   192,   193,   194,   195,   196,   197,   198,   199,   200,   201,   202,   203,   204,   205,   206,   207,   208,   209,   210,   211,   212,   213,   214,   215,   216,   217,   218,   219,   220,   221,   222,   223,   224,   225,   226,   227,   228,   229,   230,   231,   232,   233,   234,   235,   236,   237,   238,   239,   240,   241,   242,   243,   244,   245,   246,   247,   248,   249,   250,   251,   252,   253};#if YYDEBUG != 0static const short yyprhs[] = {     0,     0,     1,     4,     7,     9,    12,    16,    17,    21,    22,    26,    28,    30,    32,    36,    40,    44,    48,    52,    56,    60,    64,    68,    72,    76,    80,    84,    88,    92,    94,    97,    99,   103,   107,   111,   115,   119,   124,   129,   133,   138,   143,   147,   152,   156,   161,   165,   170,   175,   180,   185,   189,   194,   199,   203,   207,   212,   217,   222,   227,   231,   236,   241,   246,   251,   256,   261,   266,   271,   276,   281,   286,   291,   294,   298,   302,   307,   312,   317,   322,   327,   332,   337,   342,   347,   352,   355,   358,   362,   365,   369,   372,   375,   379,   383,   387,   392,   396,   400,   404,   406,   408,   410,   412,   414,   416,   418,   420,   422,   424,   426,   428,   430,   432,   434,   436,   438,   440,   442,   444,   446,   448,   450,   452,   454,   456,   458,   460,   462,   464,   466,   468,   470,   472,   474,   476,   478,   480,   482,   484,   486,   488,   490,   492,   494,   496,   498,   500,   502,   504,   506,   508,   510,   512,   514,   516,   518,   520,   522,   524,   526,   528,   530,   532,   534,   536,   538,   540,   542,   544,   546,   548,   550,   552,   554,   556,   558,   560,   562,   564,   566,   568,   570,   572,   574,   576,   578,   580,   582,   584,   586,   588,   590,   592,   594,   596,   598,   600,   602,   604,   606,   608,   610,   612,   614,   616,   618,   620,   622,   624,   626,   628,   630,   632,   634,   636,   638,   640,   642,   644,   646,   648,   650,   652,   654,   656,   658,   660,   662,   664,   666,   668,   670,   672,   674,   676,   678,   680,   682,   684,   686,   688,   690,   692,   694,   696,   698,   700,   702,   704,   706,   708,   710,   712,   714,   716,   718,   720,   722,   724,   726,   728,   730,   732,   734,   736,   738,   740,   742,   744,   746,   748,   750,   752,   754,   756,   758,   760,   764,   767,   768,   772,   773,   777,   779,   782,   783,   787,   791,   793,   796,   798,   801,   802,   806,   809,   812,   814,   817,   821,   825,   827,   831,   832,   836,   840,   845,   848,   849,   853,   856,   860,   864,   868,   872,   876,   879,   882,   884,   887,   889,   892,   895,   898,   901,   903,   906,   908,   911,   915,   920,   921,   925,   926,   929,   933,   935,   940,   942,   947,   951,   955,   959,   966,   973,   974,   977,   979,   981,   983,   990,   992,   996,  1000,  1002,  1006,  1009,  1011,  1013,  1015,  1017,  1019,  1021,  1023,  1025,  1027,  1029,  1031,  1033,  1035,  1037,  1040,  1042,  1044,  1048,  1049,  1052,  1054,  1056,  1059,  1061,  1065,  1068,  1070,  1071,  1074,  1076,  1077,  1078};static const short yyrhs[] = {    -1,   262,   263,     0,   264,   265,     0,   265,     0,   353,   254,     0,   353,   255,     5,     0,     0,   269,   266,   268,     0,     0,   313,   267,   268,     0,   268,     0,     4,     0,     3,     0,   270,   330,   321,     0,   271,   341,   321,     0,   272,   330,   327,     0,   176,   330,   321,     0,   178,   330,   328,     0,   179,   337,    10,     0,   180,   337,    10,     0,   210,   330,   321,     0,   273,   330,   321,     0,   274,   337,   321,     0,   275,   335,   321,     0,   276,   341,   321,     0,   212,   335,   321,     0,   211,   335,   321,     0,   277,   338,   321,     0,   278,     0,    37,     5,     0,   191,     0,   163,   330,   331,     0,   190,   330,   331,     0,   189,   330,   331,     0,   192,   330,   331,     0,   185,   330,   331,     0,   279,   330,   331,   332,     0,   279,   330,   331,   328,     0,   279,   330,   328,     0,   280,   330,   331,   332,     0,   280,   330,   331,     5,     0,   280,   330,     5,     0,   281,   330,   331,   326,     0,   281,   330,   326,     0,   282,   330,   331,   327,     0,   282,   330,   327,     0,   283,   330,   331,     5,     0,   283,   330,   331,   332,     0,   284,   330,   331,   332,     0,   284,   330,   331,   328,     0,   284,   330,   328,     0,   285,   330,   331,   332,     0,   285,   330,   331,   328,     0,   285,   330,   328,     0,   286,   330,   331,     0,   286,   330,   331,   332,     0,   286,   330,   331,   328,     0,   287,   330,   331,   332,     0,   287,   330,   331,   328,     0,   292,   331,   332,     0,   196,   330,   331,   332,     0,   195,   330,   331,   332,     0,   196,   330,   331,   328,     0,   195,   330,   331,   328,     0,   288,   330,   331,   332,     0,   288,   330,   331,   328,     0,   289,   330,   331,   332,     0,   289,   330,   331,   328,     0,   290,   330,   331,   332,     0,   290,   330,   331,   328,     0,   291,   330,   331,   332,     0,   291,   330,   331,   328,     0,   293,   342,     0,   294,   331,   342,     0,   295,   331,   342,     0,   296,   331,   332,   342,     0,   296,   331,   324,   342,     0,   297,   331,   332,   342,     0,   297,   331,   324,   342,     0,   298,   331,   332,   342,     0,   298,   331,   324,   342,     0,   299,   331,   332,   342,     0,   299,   331,   324,   342,     0,   300,   331,   332,   342,     0,   300,   331,   324,   342,     0,   301,   342,     0,   301,   331,     0,   301,   333,   331,     0,   302,   342,     0,   303,   341,   341,     0,   304,   334,     0,   305,   334,     0,   306,   334,   341,     0,   307,   341,   341,     0,   308,   337,   338,     0,   309,   337,   338,   339,     0,   310,   337,   339,     0,   311,   337,   339,     0,   312,   338,   339,     0,    97,     0,    96,     0,    99,     0,    98,     0,   107,     0,   105,     0,   106,     0,   177,     0,   131,     0,   101,     0,   103,     0,   104,     0,   100,     0,   209,     0,   208,     0,   102,     0,   182,     0,   181,     0,   133,     0,   134,     0,   155,     0,   153,     0,   154,     0,   197,     0,   149,     0,   151,     0,   152,     0,   150,     0,   207,     0,   206,     0,   132,     0,   156,     0,    17,     0,    15,     0,    20,     0,   162,     0,   130,     0,   140,     0,   139,     0,   135,     0,   141,     0,   143,     0,    14,     0,    13,     0,   138,     0,   137,     0,    19,     0,   129,     0,   161,     0,   136,     0,   142,     0,   144,     0,   128,     0,   147,     0,   145,     0,    90,     0,    88,     0,   194,     0,   193,     0,   188,     0,   187,     0,   186,     0,   204,     0,   203,     0,   202,     0,   201,     0,   200,     0,   199,     0,   198,     0,   205,     0,   123,     0,   122,     0,    22,     0,    24,     0,    26,     0,    28,     0,    21,     0,    23,     0,    25,     0,    27,     0,    31,     0,    30,     0,    32,     0,    33,     0,    35,     0,    34,     0,   165,     0,   174,     0,    29,     0,    36,     0,   169,     0,   168,     0,   167,     0,   166,     0,   173,     0,   172,     0,   171,     0,   170,     0,    95,     0,    94,     0,    93,     0,    92,     0,   175,     0,   164,     0,   115,     0,   114,     0,   112,     0,   113,     0,   120,     0,   121,     0,   108,     0,   109,     0,   183,     0,   110,     0,   111,     0,   116,     0,   117,     0,   184,     0,   118,     0,   119,     0,    38,     0,    39,     0,    40,     0,    41,     0,    46,     0,    47,     0,    48,     0,    49,     0,    12,     0,    11,     0,    18,     0,    16,     0,    91,     0,    89,     0,   125,     0,   124,     0,   148,     0,   146,     0,    50,     0,    51,     0,    52,     0,    53,     0,    54,     0,    55,     0,   127,     0,   126,     0,    59,     0,    87,     0,    57,     0,    81,     0,    73,     0,    75,     0,    83,     0,    85,     0,    79,     0,    67,     0,    77,     0,    69,     0,    63,     0,    65,     0,    61,     0,    71,     0,    58,     0,    86,     0,    56,     0,    80,     0,    72,     0,    74,     0,    82,     0,    84,     0,    78,     0,    66,     0,    76,     0,    68,     0,    62,     0,    64,     0,    60,     0,    70,     0,   213,     7,     7,     0,   214,   347,     0,     0,   215,   314,   343,     0,     0,   216,   315,   343,     0,   217,     0,   218,     5,     0,     0,   219,   316,   348,     0,   220,   353,   347,     0,   221,     0,   221,     5,     0,   236,     0,   236,     5,     0,     0,   222,   317,   349,     0,   225,   350,     0,   223,     5,     0,   224,     0,   226,   353,     0,   226,   353,     5,     0,   228,   353,   347,     0,   227,     0,   229,     5,     9,     0,

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -