1 |
/* tic80.h -- Header file for TI TMS320C80 (MV) opcode table |
/* tic80.h -- Header file for TI TMS320C80 (MV) opcode table |
2 |
Copyright 1996, 1997 Free Software Foundation, Inc. |
Copyright 1996, 1997, 2003 Free Software Foundation, Inc. |
3 |
Written by Fred Fish (fnf@cygnus.com), Cygnus Support |
Written by Fred Fish (fnf@cygnus.com), Cygnus Support |
4 |
|
|
5 |
This file is part of GDB, GAS, and the GNU binutils. |
This file is part of GDB, GAS, and the GNU binutils. |
90 |
operand value is legal, *ERRMSG will be unchanged (most operands |
operand value is legal, *ERRMSG will be unchanged (most operands |
91 |
can accept any value). */ |
can accept any value). */ |
92 |
|
|
93 |
unsigned long (*insert) PARAMS ((unsigned long instruction, long op, |
unsigned long (*insert) |
94 |
const char **errmsg)); |
(unsigned long instruction, long op, const char **errmsg); |
95 |
|
|
96 |
/* Extraction function. This is used by the disassembler. To |
/* Extraction function. This is used by the disassembler. To |
97 |
extract this operand type from an instruction, check this field. |
extract this operand type from an instruction, check this field. |
111 |
this operand (i.e., the instruction does not match). If the |
this operand (i.e., the instruction does not match). If the |
112 |
operand is valid, *INVALID will not be changed. */ |
operand is valid, *INVALID will not be changed. */ |
113 |
|
|
114 |
long (*extract) PARAMS ((unsigned long instruction, int *invalid)); |
long (*extract) (unsigned long instruction, int *invalid); |
115 |
|
|
116 |
/* One bit syntax flags. */ |
/* One bit syntax flags. */ |
117 |
|
|
265 |
#define PDS_NAME(pdsp) ((pdsp) -> name) |
#define PDS_NAME(pdsp) ((pdsp) -> name) |
266 |
#define PDS_VALUE(pdsp) ((pdsp) -> value) |
#define PDS_VALUE(pdsp) ((pdsp) -> value) |
267 |
|
|
268 |
extern const struct predefined_symbol tic80_predefined_symbols[]; /* Translation array */ |
/* Translation array. */ |
269 |
extern const int tic80_num_predefined_symbols; /* How many members in the array */ |
extern const struct predefined_symbol tic80_predefined_symbols[]; |
270 |
|
/* How many members in the array. */ |
271 |
|
extern const int tic80_num_predefined_symbols; |
272 |
|
|
273 |
const char *tic80_value_to_symbol PARAMS ((int val, int class)); /* Translate value to symbolic name */ |
/* Translate value to symbolic name. */ |
274 |
int tic80_symbol_to_value PARAMS ((char *name, int class)); /* Translate symbolic name to value */ |
const char *tic80_value_to_symbol (int val, int class); |
275 |
|
|
276 |
const struct predefined_symbol * |
/* Translate symbolic name to value. */ |
277 |
tic80_next_predefined_symbol PARAMS ((const struct predefined_symbol *)); |
int tic80_symbol_to_value (char *name, int class); |
278 |
|
|
279 |
|
const struct predefined_symbol *tic80_next_predefined_symbol |
280 |
|
(const struct predefined_symbol *); |
281 |
|
|
282 |
#endif /* TIC80_H */ |
#endif /* TIC80_H */ |