1 /* Disassembler structures definitions for the ARC.
2 Copyright 1994, 1995, 1997, 1998, 2000, 2001
3 Free Software Foundation, Inc.
4 Contributed by Doug Evans (dje@cygnus.com).
6 This program 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 of the License, or
9 (at your option) any later version.
11 This program 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 this program; if not, write to the Free Software Foundation,
18 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
41 enum { allOperandsSize = 256 };
47 void (*err)(void*, const char*);
48 const char *(*coreRegName)(void*, int);
49 const char *(*auxRegName)(void*, int);
50 const char *(*condCodeName)(void*, int);
51 const char *(*instName)(void*, int, int, int*);
53 unsigned char* instruction;
55 const char *comm[6]; /* instr name, cond, NOP, 3 operands */
59 /* Set as a side-effect of calling the disassembler.
60 Used only by the debugger. */
62 int register_for_indirect_jump;
63 int ea_reg1, ea_reg2, _offset;
65 unsigned long words[2];
68 char operandBuffer[allOperandsSize];
73 unsigned char commNum;
74 unsigned char isBranch;
79 #define __TRANSLATION_REQUIRED(state) ((state).acnt != 0)