1 /* Select disassembly routine for specified architecture.
2 Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
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. */
70 #define ARCH_xstormy16
75 #define INCLUDE_SHMEDIA
83 enum bfd_architecture a
= bfd_get_arch (abfd
);
84 disassembler_ftype disassemble
;
88 /* If you add a case to this table, also add it to the
89 ARCH_all definition right above this function. */
92 /* As far as I know we only handle big-endian 29k objects. */
93 disassemble
= print_insn_big_a29k
;
98 disassemble
= print_insn_alpha
;
104 disassemble
= arc_get_disassembler (abfd
);
110 if (bfd_big_endian (abfd
))
111 disassemble
= print_insn_big_arm
;
113 disassemble
= print_insn_little_arm
;
118 disassemble
= print_insn_avr
;
123 disassemble
= cris_get_disassembler (abfd
);
128 disassemble
= print_insn_d10v
;
133 disassemble
= print_insn_d30v
;
138 /* As far as I know we only handle big-endian DLX objects. */
139 disassemble
= print_insn_dlx
;
144 if (bfd_get_mach(abfd
) == bfd_mach_h8300h
)
145 disassemble
= print_insn_h8300h
;
146 else if (bfd_get_mach(abfd
) == bfd_mach_h8300s
)
147 disassemble
= print_insn_h8300s
;
149 disassemble
= print_insn_h8300
;
154 disassemble
= print_insn_h8500
;
159 disassemble
= print_insn_hppa
;
164 disassemble
= print_insn_i370
;
169 disassemble
= print_insn_i386
;
174 disassemble
= print_insn_i860
;
179 disassemble
= print_insn_i960
;
184 disassemble
= print_insn_ia64
;
189 disassemble
= print_insn_ip2k
;
194 disassemble
= print_insn_fr30
;
199 disassemble
= print_insn_m32r
;
202 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
203 case bfd_arch_m68hc11
:
204 disassemble
= print_insn_m68hc11
;
206 case bfd_arch_m68hc12
:
207 disassemble
= print_insn_m68hc12
;
212 disassemble
= print_insn_m68k
;
217 disassemble
= print_insn_m88k
;
221 case bfd_arch_msp430
:
222 disassemble
= print_insn_msp430
;
227 disassemble
= print_insn_ns32k
;
232 disassemble
= print_insn_mcore
;
237 if (bfd_big_endian (abfd
))
238 disassemble
= print_insn_big_mips
;
240 disassemble
= print_insn_little_mips
;
245 disassemble
= print_insn_mmix
;
249 case bfd_arch_mn10200
:
250 disassemble
= print_insn_mn10200
;
254 case bfd_arch_mn10300
:
255 disassemble
= print_insn_mn10300
;
259 case bfd_arch_openrisc
:
260 disassemble
= print_insn_openrisc
;
265 if (bfd_big_endian (abfd
))
266 disassemble
= print_insn_big_or32
;
268 disassemble
= print_insn_little_or32
;
273 disassemble
= print_insn_pdp11
;
278 disassemble
= print_insn_pj
;
282 case bfd_arch_powerpc
:
283 if (bfd_big_endian (abfd
))
284 disassemble
= print_insn_big_powerpc
;
286 disassemble
= print_insn_little_powerpc
;
290 case bfd_arch_rs6000
:
291 if (bfd_get_mach (abfd
) == bfd_mach_ppc_620
)
292 disassemble
= print_insn_big_powerpc
;
294 disassemble
= print_insn_rs6000
;
299 disassemble
= print_insn_s390
;
304 disassemble
= print_insn_sh
;
309 disassemble
= print_insn_sparc
;
314 disassemble
= print_insn_tic30
;
319 disassemble
= print_insn_tic4x
;
323 case bfd_arch_tic54x
:
324 disassemble
= print_insn_tic54x
;
329 disassemble
= print_insn_tic80
;
334 disassemble
= print_insn_v850
;
339 disassemble
= print_insn_w65
;
342 #ifdef ARCH_xstormy16
343 case bfd_arch_xstormy16
:
344 disassemble
= print_insn_xstormy16
;
348 case bfd_arch_xtensa
:
349 disassemble
= print_insn_xtensa
;
354 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
355 disassemble
= print_insn_z8001
;
357 disassemble
= print_insn_z8002
;
362 disassemble
= print_insn_vax
;
367 disassemble
= print_insn_frv
;
371 case bfd_arch_iq2000
:
372 disassemble
= print_insn_iq2000
;
382 disassembler_usage (stream
)
383 FILE * stream ATTRIBUTE_UNUSED
;
386 print_arm_disassembler_options (stream
);
389 print_mips_disassembler_options (stream
);
392 print_ppc_disassembler_options (stream
);