8653229b7c00fa518268a1f7a3cb8c276583dcb1
4 Copyright (C) 1997 Free Software Foundation, Inc.
6 This file is part of GAS, the GNU Assembler.
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to the Free
20 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 /* External functions, constants and defines for itbl support */
28 /* Defaults for definitions required by generic code */
29 #ifndef ITBL_NUMBER_OF_PROCESSORS
30 #define ITBL_NUMBER_OF_PROCESSORS 1
33 #ifndef ITBL_MAX_BITPOS
34 #define ITBL_MAX_BITPOS 31
38 #define ITBL_TYPE unsigned long
42 #define ITBL_IS_INSN(insn) 1
45 #ifndef ITBL_DECODE_PNUM
46 #define ITBL_DECODE_PNUM(insn) 0
49 #ifndef ITBL_ENCODE_PNUM
50 #define ITBL_ENCODE_PNUM(pnum) 0
53 typedef ITBL_TYPE t_insn
;
55 /* types of entries */
64 e_nregtypes
= e_greg
+ 1,
67 e_invtype
/* invalid type */
73 e_nprocs
= NUMBER_OF_PROCESSORS
,
74 e_invproc
/* invalid processor */
77 /* 0 means an instruction table was not specified. */
78 extern int itbl_have_entries
;
80 /* These routines are visible to the main part of the assembler */
82 int itbl_parse
PARAMS ((char *insntbl
));
83 void itbl_init
PARAMS ((void));
84 char *itbl_get_field
PARAMS ((char **s
));
85 unsigned long itbl_assemble
PARAMS ((char *name
, char *operands
));
86 int itbl_disassemble
PARAMS ((char *str
, unsigned long insn
));
87 int itbl_parse
PARAMS ((char *tbl
)); /* parses insn tbl */
88 unsigned long itbl_get_reg_val
PARAMS ((char *name
));
89 unsigned long itbl_get_val
PARAMS ((e_processor processor
, e_type type
,
91 char *itbl_get_name
PARAMS ((e_processor processor
, e_type type
,
94 /* These routines are called by the table parser used to build the
95 dynamic list of new processor instructions and registers. */
97 struct itbl_entry
*itbl_add_reg
PARAMS ((int yyproc
, int yytype
,
98 char *regname
, int regnum
));
99 struct itbl_entry
*itbl_add_insn
PARAMS ((int yyproc
, char *name
,
100 unsigned long value
, int sbit
, int ebit
, unsigned long flags
));
101 struct itbl_field
*itbl_add_operand
PARAMS ((struct itbl_entry
* e
, int yytype
,
102 int sbit
, int ebit
, unsigned long flags
));
This page took 0.031526 seconds and 3 git commands to generate.