OLD | NEW |
1 /* Disassembler for the i860. | 1 /* Disassembler for the i860. |
2 Copyright 2000, 2003, 2005, 2007 Free Software Foundation, Inc. | 2 Copyright 2000, 2003, 2005, 2007, 2012 Free Software Foundation, Inc. |
3 | 3 |
4 Contributed by Jason Eckhardt <jle@cygnus.com>. | 4 Contributed by Jason Eckhardt <jle@cygnus.com>. |
5 | 5 |
6 This file is part of the GNU opcodes library. | 6 This file is part of the GNU opcodes library. |
7 | 7 |
8 This library is free software; you can redistribute it and/or modify | 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 | 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) | 10 the Free Software Foundation; either version 3, or (at your option) |
11 any later version. | 11 any later version. |
12 | 12 |
13 It is distributed in the hope that it will be useful, but WITHOUT | 13 It is distributed in the hope that it will be useful, but WITHOUT |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
16 License for more details. | 16 License for more details. |
17 | 17 |
18 You should have received a copy of the GNU General Public License | 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 | 19 along with this program; if not, write to the Free Software |
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
21 MA 02110-1301, USA. */ | 21 MA 02110-1301, USA. */ |
22 | 22 |
| 23 #include "sysdep.h" |
23 #include "dis-asm.h" | 24 #include "dis-asm.h" |
24 #include "opcode/i860.h" | 25 #include "opcode/i860.h" |
25 | 26 |
26 /* Later we should probably choose the prefix based on which OS flavor. */ | 27 /* Later we should probably choose the prefix based on which OS flavor. */ |
27 #define I860_REG_PREFIX "%" | 28 #define I860_REG_PREFIX "%" |
28 | 29 |
29 /* Integer register names (encoded as 0..31 in the instruction). */ | 30 /* Integer register names (encoded as 0..31 in the instruction). */ |
30 static const char *const grnames[] = | 31 static const char *const grnames[] = |
31 {"r0", "r1", "sp", "fp", "r4", "r5", "r6", "r7", | 32 {"r0", "r1", "sp", "fp", "r4", "r5", "r6", "r7", |
32 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", | 33 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15", |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 default: | 277 default: |
277 (*info->fprintf_func) (info->stream, "%c", *s); | 278 (*info->fprintf_func) (info->stream, "%c", *s); |
278 break; | 279 break; |
279 } | 280 } |
280 } | 281 } |
281 } | 282 } |
282 | 283 |
283 return sizeof (insn); | 284 return sizeof (insn); |
284 } | 285 } |
285 | 286 |
OLD | NEW |