OLD | NEW |
1 /* Disassemble h8500 instructions. | 1 /* Disassemble h8500 instructions. |
2 Copyright 1993, 1998, 2000, 2001, 2002, 2004, 2005, 2007 | 2 Copyright 1993, 1998, 2000, 2001, 2002, 2004, 2005, 2007, 2012 |
3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
4 | 4 |
5 This file is part of the GNU opcodes library. | 5 This file is part of the GNU opcodes library. |
6 | 6 |
7 This library is free software; you can redistribute it and/or modify | 7 This library is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3, or (at your option) | 9 the Free Software Foundation; either version 3, or (at your option) |
10 any later version. | 10 any later version. |
11 | 11 |
12 It is distributed in the hope that it will be useful, but WITHOUT | 12 It is distributed in the hope that it will be useful, but WITHOUT |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
15 License for more details. | 15 License for more details. |
16 | 16 |
17 You should have received a copy of the GNU General Public License | 17 You should have received a copy of the GNU General Public License |
18 along with this program; if not, write to the Free Software | 18 along with this program; if not, write to the Free Software |
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, | 19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
20 MA 02110-1301, USA. */ | 20 MA 02110-1301, USA. */ |
21 | 21 |
| 22 #include "sysdep.h" |
22 #include <stdio.h> | 23 #include <stdio.h> |
23 | 24 |
24 #define DISASSEMBLER_TABLE | 25 #define DISASSEMBLER_TABLE |
25 #define DEFINE_TABLE | 26 #define DEFINE_TABLE |
26 | 27 |
27 #include "sysdep.h" | |
28 #include "h8500-opc.h" | 28 #include "h8500-opc.h" |
29 #include "dis-asm.h" | 29 #include "dis-asm.h" |
30 #include "opintl.h" | 30 #include "opintl.h" |
31 | 31 |
32 /* Maximum length of an instruction. */ | 32 /* Maximum length of an instruction. */ |
33 #define MAXLEN 8 | 33 #define MAXLEN 8 |
34 | 34 |
35 #include <setjmp.h> | 35 #include <setjmp.h> |
36 | 36 |
37 struct private | 37 struct private |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 return opcode->length; | 317 return opcode->length; |
318 next: | 318 next: |
319 ; | 319 ; |
320 } | 320 } |
321 | 321 |
322 /* Couldn't understand anything. */ | 322 /* Couldn't understand anything. */ |
323 /* xgettext:c-format */ | 323 /* xgettext:c-format */ |
324 func (stream, _("%02x\t\t*unknown*"), buffer[0]); | 324 func (stream, _("%02x\t\t*unknown*"), buffer[0]); |
325 return 1; | 325 return 1; |
326 } | 326 } |
OLD | NEW |