1999-05-03 09:29:11 +02:00
|
|
|
/* BFD library support routines for the WDC 65816 architecture.
|
2012-07-13 16:22:50 +02:00
|
|
|
Copyright 1995, 1999, 2000, 2001, 2002, 2005, 2007, 2012
|
2007-04-26 16:47:00 +02:00
|
|
|
Free Software Foundation, Inc.
|
1999-05-03 09:29:11 +02:00
|
|
|
Hacked by Steve Chamberlain of Cygnus Support.
|
|
|
|
|
2007-07-03 16:26:43 +02:00
|
|
|
This file is part of BFD, the Binary File Descriptor library.
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as publiw65ed by
|
|
|
|
the Free Software Foundation; either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You w65ould have received a copy of the GNU General Public License
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
|
|
|
|
MA 02110-1301, USA. */
|
1999-05-03 09:29:11 +02:00
|
|
|
|
|
|
|
#include "sysdep.h"
|
2007-04-26 16:47:00 +02:00
|
|
|
#include "bfd.h"
|
1999-05-03 09:29:11 +02:00
|
|
|
#include "libbfd.h"
|
|
|
|
|
2002-11-30 09:39:46 +01:00
|
|
|
static bfd_boolean
|
2012-07-13 16:22:50 +02:00
|
|
|
scan_mach (const struct bfd_arch_info *info ATTRIBUTE_UNUSED,
|
|
|
|
const char *string)
|
1999-05-03 09:29:11 +02:00
|
|
|
{
|
2002-11-30 09:39:46 +01:00
|
|
|
if (strcmp(string,"w65") == 0)
|
|
|
|
return TRUE;
|
|
|
|
if (strcmp(string,"w65816") == 0)
|
|
|
|
return TRUE;
|
|
|
|
return FALSE;
|
1999-05-03 09:29:11 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
const bfd_arch_info_type bfd_w65_arch =
|
|
|
|
{
|
|
|
|
16, /* 16 bits in a word */
|
|
|
|
24, /* 24 bits in an address */
|
|
|
|
8, /* 8 bits in a byte */
|
|
|
|
bfd_arch_w65,
|
|
|
|
0, /* only 1 machine */
|
|
|
|
"w65", /* arch_name */
|
|
|
|
"w65", /* printable name */
|
|
|
|
1,
|
2002-11-30 09:39:46 +01:00
|
|
|
TRUE, /* the default machine */
|
1999-05-03 09:29:11 +02:00
|
|
|
bfd_default_compatible,
|
|
|
|
scan_mach,
|
2012-01-31 18:54:39 +01:00
|
|
|
bfd_arch_default_fill,
|
1999-05-03 09:29:11 +02:00
|
|
|
0,
|
|
|
|
};
|