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. */
69 #define ARCH_xstormy16
72 #define INCLUDE_SHMEDIA
80 enum bfd_architecture a
= bfd_get_arch (abfd
);
81 disassembler_ftype disassemble
;
85 /* If you add a case to this table, also add it to the
86 ARCH_all definition right above this function. */
89 /* As far as I know we only handle big-endian 29k objects. */
90 disassemble
= print_insn_big_a29k
;
95 disassemble
= print_insn_alpha
;
101 disassemble
= arc_get_disassembler (abfd
);
107 if (bfd_big_endian (abfd
))
108 disassemble
= print_insn_big_arm
;
110 disassemble
= print_insn_little_arm
;
115 disassemble
= print_insn_avr
;
120 disassemble
= cris_get_disassembler (abfd
);
125 disassemble
= print_insn_d10v
;
130 disassemble
= print_insn_d30v
;
135 /* As far as I know we only handle big-endian DLX objects. */
136 disassemble
= print_insn_dlx
;
141 if (bfd_get_mach(abfd
) == bfd_mach_h8300h
)
142 disassemble
= print_insn_h8300h
;
143 else if (bfd_get_mach(abfd
) == bfd_mach_h8300s
)
144 disassemble
= print_insn_h8300s
;
146 disassemble
= print_insn_h8300
;
151 disassemble
= print_insn_h8500
;
156 disassemble
= print_insn_hppa
;
161 disassemble
= print_insn_i370
;
166 disassemble
= print_insn_i386
;
171 disassemble
= print_insn_i860
;
176 disassemble
= print_insn_i960
;
181 disassemble
= print_insn_ia64
;
186 disassemble
= print_insn_ip2k
;
191 disassemble
= print_insn_fr30
;
196 disassemble
= print_insn_m32r
;
199 #if defined(ARCH_m68hc11) || defined(ARCH_m68hc12)
200 case bfd_arch_m68hc11
:
201 disassemble
= print_insn_m68hc11
;
203 case bfd_arch_m68hc12
:
204 disassemble
= print_insn_m68hc12
;
209 disassemble
= print_insn_m68k
;
214 disassemble
= print_insn_m88k
;
219 disassemble
= print_insn_ns32k
;
224 disassemble
= print_insn_mcore
;
229 if (bfd_big_endian (abfd
))
230 disassemble
= print_insn_big_mips
;
232 disassemble
= print_insn_little_mips
;
237 disassemble
= print_insn_mmix
;
241 case bfd_arch_mn10200
:
242 disassemble
= print_insn_mn10200
;
246 case bfd_arch_mn10300
:
247 disassemble
= print_insn_mn10300
;
251 case bfd_arch_openrisc
:
252 disassemble
= print_insn_openrisc
;
257 if (bfd_big_endian (abfd
))
258 disassemble
= print_insn_big_or32
;
260 disassemble
= print_insn_little_or32
;
265 disassemble
= print_insn_pdp11
;
270 disassemble
= print_insn_pj
;
274 case bfd_arch_powerpc
:
275 if (bfd_big_endian (abfd
))
276 disassemble
= print_insn_big_powerpc
;
278 disassemble
= print_insn_little_powerpc
;
282 case bfd_arch_rs6000
:
283 if (bfd_get_mach (abfd
) == bfd_mach_ppc_620
)
284 disassemble
= print_insn_big_powerpc
;
286 disassemble
= print_insn_rs6000
;
291 disassemble
= print_insn_s390
;
296 disassemble
= print_insn_sh
;
301 disassemble
= print_insn_sparc
;
306 disassemble
= print_insn_tic30
;
311 disassemble
= print_insn_tic4x
;
315 case bfd_arch_tic54x
:
316 disassemble
= print_insn_tic54x
;
321 disassemble
= print_insn_tic80
;
326 disassemble
= print_insn_v850
;
331 disassemble
= print_insn_w65
;
334 #ifdef ARCH_xstormy16
335 case bfd_arch_xstormy16
:
336 disassemble
= print_insn_xstormy16
;
341 if (bfd_get_mach(abfd
) == bfd_mach_z8001
)
342 disassemble
= print_insn_z8001
;
344 disassemble
= print_insn_z8002
;
349 disassemble
= print_insn_vax
;
354 disassemble
= print_insn_frv
;
364 disassembler_usage (stream
)
365 FILE * stream ATTRIBUTE_UNUSED
;
368 print_arm_disassembler_options (stream
);
371 print_ppc_disassembler_options (stream
);