1 /* Disassembler structures definitions for the ARC.
2 Copyright (C) 1994, 1995, 1997, 1998 Free Software Foundation, Inc.
3 Contributed by Doug Evans (dje@cygnus.com).
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
40 enum { allOperandsSize
= 256 };
46 void (*err
)(void*, const char*);
47 const char *(*coreRegName
)(void*, int);
48 const char *(*auxRegName
)(void*, int);
49 const char *(*condCodeName
)(void*, int);
50 const char *(*instName
)(void*, int, int, int*);
52 unsigned char* instruction
;
54 const char *comm
[6]; /* instr name, cond, NOP, 3 operands */
58 /* Set as a side-effect of calling the disassembler.
59 Used only by the debugger. */
61 int register_for_indirect_jump
;
62 int ea_reg1
, ea_reg2
, _offset
;
64 unsigned long words
[2];
67 char operandBuffer
[allOperandsSize
];
72 unsigned char commNum
;
73 unsigned char isBranch
;
78 #define __TRANSLATION_REQUIRED(state) ((state).acnt != 0)