1 /* Select disassembly routine for specified architecture.
2 Copyright (C) 1994, 95, 96, 97, 98, 99, 2000
3 Free Software Foundation, Inc.
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
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
64 enum bfd_architecture a = bfd_get_arch (abfd);
65 disassembler_ftype disassemble;
69 /* If you add a case to this table, also add it to the
70 ARCH_all definition right above this function. */
73 /* As far as I know we only handle big-endian 29k objects. */
74 disassemble = print_insn_big_a29k;
79 disassemble = print_insn_alpha;
85 disassemble = arc_get_disassembler (bfd_get_mach (abfd),
86 bfd_big_endian (abfd));
92 if (bfd_big_endian (abfd))
93 disassemble = print_insn_big_arm;
95 disassemble = print_insn_little_arm;
100 disassemble = print_insn_avr;
105 disassemble = print_insn_d10v;
110 disassemble = print_insn_d30v;
115 if (bfd_get_mach(abfd) == bfd_mach_h8300h)
116 disassemble = print_insn_h8300h;
117 else if (bfd_get_mach(abfd) == bfd_mach_h8300s)
118 disassemble = print_insn_h8300s;
120 disassemble = print_insn_h8300;
125 disassemble = print_insn_h8500;
130 disassemble = print_insn_hppa;
135 disassemble = print_insn_i370;
140 if (bfd_get_mach (abfd) == bfd_mach_i386_i386_intel_syntax)
141 disassemble = print_insn_i386_intel;
143 disassemble = print_insn_i386_att;
148 disassemble = print_insn_i960;
153 disassemble = print_insn_ia64;
158 disassemble = print_insn_fr30;
163 disassemble = print_insn_m32r;
168 disassemble = print_insn_m68k;
173 disassemble = print_insn_m88k;
178 disassemble = print_insn_ns32k;
183 disassemble = print_insn_mcore;
188 if (bfd_big_endian (abfd))
189 disassemble = print_insn_big_mips;
191 disassemble = print_insn_little_mips;
195 case bfd_arch_mn10200:
196 disassemble = print_insn_mn10200;
200 case bfd_arch_mn10300:
201 disassemble = print_insn_mn10300;
206 disassemble = print_insn_pj;
210 case bfd_arch_powerpc:
211 if (bfd_big_endian (abfd))
212 disassemble = print_insn_big_powerpc;
214 disassemble = print_insn_little_powerpc;
218 case bfd_arch_rs6000:
219 disassemble = print_insn_rs6000;
224 if (bfd_big_endian (abfd))
225 disassemble = print_insn_sh;
227 disassemble = print_insn_shl;
232 disassemble = print_insn_sparc;
237 disassemble = print_insn_tic30;
242 disassemble = print_insn_tic80;
247 disassemble = print_insn_v850;
252 disassemble = print_insn_w65;
257 if (bfd_get_mach(abfd) == bfd_mach_z8001)
258 disassemble = print_insn_z8001;
260 disassemble = print_insn_z8002;
265 disassemble = print_insn_vax;
275 disassembler_usage (stream)
276 FILE *stream ATTRIBUTE_UNUSED;
279 print_arm_disassembler_options (stream);