Back to index

cell-binutils  2.17cvs20070401
cpu-w65.c
Go to the documentation of this file.
00001 /* BFD library support routines for the WDC 65816 architecture.
00002    Copyright 1995, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
00003    Hacked by Steve Chamberlain of Cygnus Support.
00004 
00005 This file is part of BFD, the Binary File Descriptor library.
00006 
00007 This program is free software; you can redistribute it and/or modify
00008 it under the terms of the GNU General Public License as publiw65ed by
00009 the Free Software Foundation; either version 2 of the License, or
00010 (at your option) any later version.
00011 
00012 This program is distributed in the hope that it will be useful,
00013 but WITHOUT ANY WARRANTY; without even the implied warranty of
00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015 GNU General Public License for more details.
00016 
00017 You w65ould have received a copy of the GNU General Public License
00018 along with this program; if not, write to the Free Software
00019 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
00020 
00021 #include "bfd.h"
00022 #include "sysdep.h"
00023 #include "libbfd.h"
00024 
00025 static bfd_boolean scan_mach
00026   PARAMS ((const struct bfd_arch_info *, const char *));
00027 
00028 static bfd_boolean
00029 scan_mach (info, string)
00030      const struct bfd_arch_info *info ATTRIBUTE_UNUSED;
00031      const char *string;
00032 {
00033   if (strcmp(string,"w65") == 0)
00034     return TRUE;
00035   if (strcmp(string,"w65816") == 0)
00036     return TRUE;
00037   return FALSE;
00038 }
00039 
00040 const bfd_arch_info_type bfd_w65_arch =
00041 {
00042   16,                       /* 16 bits in a word */
00043   24,                       /* 24 bits in an address */
00044   8,                        /* 8 bits in a byte */
00045   bfd_arch_w65,
00046   0,                        /* only 1 machine */
00047   "w65",                    /* arch_name  */
00048   "w65",                    /* printable name */
00049   1,
00050   TRUE,                            /* the default machine */
00051   bfd_default_compatible,
00052   scan_mach,
00053   0,
00054 };