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. */
68 #define ARCH_xstormy16
71 #define INCLUDE_SHMEDIA
79 enum bfd_architecture a
= bfd_get_arch (abfd
);
80 disassembler_ftype disassemble
;
84 /* If you add a case to this table, also add it to the
85 ARCH_all definition right above this function. */
88 /* As far as I know we only handle big-endian 29k objects. */
89 disassemble
= print_insn_big_a29k
;
94 disassemble
= print_insn_alpha
;
100 disassemble
= arc_get_disassembler (abfd
);
106 if (bfd_big_endian (abfd
))
107 disassemble
= print_insn_big_arm
;
109 disassemble
= print_insn_little_arm
;
114 disassemble
= print_insn_avr
;
119 disassemble
= cris_get_disassembler (abfd
);
124 disassemble
= print_insn_d10v
;
129 disassemble
= print_insn_d30v
;
134 /* As far as I know we only handle big-endian DLX objects. */
135 disassemble
= print_insn_dlx
;
140 if (bfd_get_mach(abfd
) == bfd_mach_h8300h
)
141 disassemble
= print_insn_h8300h
;
142 else if (bfd_get_mach(abfd
) == bfd_mach_h8300s
)
143 disassemble
= print_insn_h8300s
;
145 disassemble
= print_insn_h8300
;
150 disassemble
= print_insn_h8500
;
155 disassemble
= print_insn_hppa
;
160 disassemble
= print_insn_i370
;
165 disassemble
= print_insn_i386
;
170 disassemble
= print_insn_i860
;
175 disassemble
= print_insn_i960
;
180 disassemble
= print_insn_ia64
;
185 disassemble
= print_insn_ip2k
;
190 disassemble
= print_insn_fr30
;
195 disassemble
= print_insn_m32r
;
198 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
199 case bfd_arch_m68hc11
:
200 disassemble
= print_insn_m68hc11
;
202 case bfd_arch_m68hc12
:
203 disassemble
= print_insn_m68hc12
;
208 disassemble
= print_insn_m68k
;
213 disassemble
= print_insn_m88k
;
218 disassemble
= print_insn_ns32k
;
223 disassemble
= print_insn_mcore
;
228 if (bfd_big_endian (abfd
))
229 disassemble
= print_insn_big_mips
;
231 disassemble
= print_insn_little_mips
;
236 disassemble
= print_insn_mmix
;
240 case bfd_arch_mn10200
:
241 disassemble
= print_insn_mn10200
;
245 case bfd_arch_mn10300
:
246 disassemble
= print_insn_mn10300
;
250 case bfd_arch_openrisc
:
251 disassemble
= print_insn_openrisc
;
256 if (bfd_big_endian (abfd
))
257 disassemble
= print_insn_big_or32
;
259 disassemble
= print_insn_little_or32
;
264 disassemble
= print_insn_pdp11
;
269 disassemble
= print_insn_pj
;
273 case bfd_arch_powerpc
:
274 if (bfd_big_endian (abfd
))
275 disassemble
= print_insn_big_powerpc
;
277 disassemble
= print_insn_little_powerpc
;
281 case bfd_arch_rs6000
:
282 if (bfd_get_mach (abfd
) == bfd_mach_ppc_620
)
283 disassemble
= print_insn_big_powerpc
;
285 disassemble
= print_insn_rs6000
;
290 disassemble
= print_insn_s390
;
295 disassemble
= print_insn_sh
;
300 disassemble
= print_insn_sparc
;
305 disassemble
= print_insn_tic30
;
309 case bfd_arch_tic54x
:
310 disassemble
= print_insn_tic54x
;
315 disassemble
= print_insn_tic80
;
320 disassemble
= print_insn_v850
;
325 disassemble
= print_insn_w65
;
328 #ifdef ARCH_xstormy16
329 case bfd_arch_xstormy16
:
330 disassemble
= print_insn_xstormy16
;
335 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
336 disassemble
= print_insn_z8001
;
338 disassemble
= print_insn_z8002
;
343 disassemble
= print_insn_vax
;
348 disassemble
= print_insn_frv
;
358 disassembler_usage (stream
)
359 FILE * stream ATTRIBUTE_UNUSED
;
362 print_arm_disassembler_options (stream
);