* options.cc (parse_short_option): Keep dash_z from registering itself.
[deliverable/binutils-gdb.git] / bfd / cpu-w65.c
CommitLineData
252b5132 1/* BFD library support routines for the WDC 65816 architecture.
3db64b00
AM
2 Copyright 1995, 1999, 2000, 2001, 2002, 2007
3 Free Software Foundation, Inc.
252b5132
RH
4 Hacked by Steve Chamberlain of Cygnus Support.
5
cd123cb7
NC
6 This file is part of BFD, the Binary File Descriptor library.
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as publiw65ed by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You w65ould have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
252b5132 22
252b5132 23#include "sysdep.h"
3db64b00 24#include "bfd.h"
252b5132
RH
25#include "libbfd.h"
26
b34976b6 27static bfd_boolean scan_mach
dc810e39 28 PARAMS ((const struct bfd_arch_info *, const char *));
252b5132 29
b34976b6 30static bfd_boolean
252b5132 31scan_mach (info, string)
5f771d47 32 const struct bfd_arch_info *info ATTRIBUTE_UNUSED;
252b5132
RH
33 const char *string;
34{
b34976b6
AM
35 if (strcmp(string,"w65") == 0)
36 return TRUE;
37 if (strcmp(string,"w65816") == 0)
38 return TRUE;
39 return FALSE;
252b5132
RH
40}
41
252b5132
RH
42const bfd_arch_info_type bfd_w65_arch =
43{
44 16, /* 16 bits in a word */
45 24, /* 24 bits in an address */
46 8, /* 8 bits in a byte */
47 bfd_arch_w65,
48 0, /* only 1 machine */
49 "w65", /* arch_name */
50 "w65", /* printable name */
51 1,
b34976b6 52 TRUE, /* the default machine */
252b5132
RH
53 bfd_default_compatible,
54 scan_mach,
55 0,
56};
This page took 0.827614 seconds and 4 git commands to generate.