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