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