1 /* Disassembler structures definitions for the ARC.
2 Copyright 1994, 1995, 1997, 1998, 2000, 2001, 2007
3 Free Software Foundation, Inc.
4 Contributed by Doug Evans (dje@cygnus.com).
6 This file is part of libopcodes.
8 This library 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 3, or (at your option)
13 It is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software Foundation,
20 Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
43 enum { allOperandsSize
= 256 };
49 void (*err
)(void*, const char*);
50 const char *(*coreRegName
)(void*, int);
51 const char *(*auxRegName
)(void*, int);
52 const char *(*condCodeName
)(void*, int);
53 const char *(*instName
)(void*, int, int, int*);
55 unsigned char* instruction
;
57 const char *comm
[6]; /* instr name, cond, NOP, 3 operands */
61 /* Set as a side-effect of calling the disassembler.
62 Used only by the debugger. */
64 int register_for_indirect_jump
;
65 int ea_reg1
, ea_reg2
, _offset
;
67 unsigned long words
[2];
70 char operandBuffer
[allOperandsSize
];
75 unsigned char commNum
;
76 unsigned char isBranch
;
81 #define __TRANSLATION_REQUIRED(state) ((state).acnt != 0)