OLD | NEW |
1 /* i370-dis.c -- Disassemble Instruction 370 (ESA/390) instructions | 1 /* i370-dis.c -- Disassemble Instruction 370 (ESA/390) instructions |
2 Copyright 1994, 2000, 2003, 2005, 2007 Free Software Foundation, Inc. | 2 Copyright 1994, 2000, 2003, 2005, 2007, 2012 |
| 3 Free Software Foundation, Inc. |
3 PowerPC version written by Ian Lance Taylor, Cygnus Support | 4 PowerPC version written by Ian Lance Taylor, Cygnus Support |
4 Rewritten for i370 ESA/390 support by Linas Vepstas <linas@linas.org> | 5 Rewritten for i370 ESA/390 support by Linas Vepstas <linas@linas.org> |
5 | 6 |
6 This file is part of the GNU opcodes library. | 7 This file is part of the GNU opcodes library. |
7 | 8 |
8 This library is free software; you can redistribute it and/or modify | 9 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 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) | 11 the Free Software Foundation; either version 3, or (at your option) |
11 any later version. | 12 any later version. |
12 | 13 |
13 It is distributed in the hope that it will be useful, but WITHOUT | 14 It is distributed in the hope that it will be useful, but WITHOUT |
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | 15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | 16 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
16 License for more details. | 17 License for more details. |
17 | 18 |
18 You should have received a copy of the GNU General Public License | 19 You should have received a copy of the GNU General Public License |
19 along with this file; see the file COPYING. If not, write to the Free | 20 along with this file; see the file COPYING. If not, write to the Free |
20 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, | 21 Software Foundation, 51 Franklin Street - Fifth Floor, Boston, |
21 MA 02110-1301, USA. */ | 22 MA 02110-1301, USA. */ |
22 | 23 |
| 24 #include "sysdep.h" |
23 #include <stdio.h> | 25 #include <stdio.h> |
24 #include "sysdep.h" | |
25 #include "dis-asm.h" | 26 #include "dis-asm.h" |
26 #include "opcode/i370.h" | 27 #include "opcode/i370.h" |
27 | 28 |
28 /* This file provides several disassembler functions, all of which use | 29 /* This file provides several disassembler functions, all of which use |
29 the disassembler interface defined in dis-asm.h. */ | 30 the disassembler interface defined in dis-asm.h. */ |
30 | 31 |
31 int | 32 int |
32 print_insn_i370 (bfd_vma memaddr, struct disassemble_info *info) | 33 print_insn_i370 (bfd_vma memaddr, struct disassemble_info *info) |
33 { | 34 { |
34 bfd_byte buffer[8]; | 35 bfd_byte buffer[8]; |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 153 } |
153 | 154 |
154 return opcode->len; | 155 return opcode->len; |
155 } | 156 } |
156 | 157 |
157 /* We could not find a match. */ | 158 /* We could not find a match. */ |
158 (*info->fprintf_func) (info->stream, ".short 0x%02x%02x", buffer[0], buffer[1]
); | 159 (*info->fprintf_func) (info->stream, ".short 0x%02x%02x", buffer[0], buffer[1]
); |
159 | 160 |
160 return 2; | 161 return 2; |
161 } | 162 } |
OLD | NEW |