1 |
/* BFD library support routines for the WDC 65816 architecture. |
/* BFD library support routines for the WDC 65816 architecture. |
2 |
Copyright 1995, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright 1995, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
Hacked by Steve Chamberlain of Cygnus Support. |
Hacked by Steve Chamberlain of Cygnus Support. |
4 |
|
|
5 |
This file is part of BFD, the Binary File Descriptor library. |
This file is part of BFD, the Binary File Descriptor library. |
22 |
#include "sysdep.h" |
#include "sysdep.h" |
23 |
#include "libbfd.h" |
#include "libbfd.h" |
24 |
|
|
25 |
static boolean scan_mach |
static bfd_boolean scan_mach |
26 |
PARAMS ((const struct bfd_arch_info *, const char *)); |
PARAMS ((const struct bfd_arch_info *, const char *)); |
27 |
|
|
28 |
static boolean |
static bfd_boolean |
29 |
scan_mach (info, string) |
scan_mach (info, string) |
30 |
const struct bfd_arch_info *info ATTRIBUTE_UNUSED; |
const struct bfd_arch_info *info ATTRIBUTE_UNUSED; |
31 |
const char *string; |
const char *string; |
32 |
{ |
{ |
33 |
if (strcmp(string,"w65") == 0) return true; |
if (strcmp(string,"w65") == 0) |
34 |
if (strcmp(string,"w65816") == 0) return true; |
return TRUE; |
35 |
return false; |
if (strcmp(string,"w65816") == 0) |
36 |
|
return TRUE; |
37 |
|
return FALSE; |
38 |
} |
} |
39 |
|
|
40 |
const bfd_arch_info_type bfd_w65_arch = |
const bfd_arch_info_type bfd_w65_arch = |
47 |
"w65", /* arch_name */ |
"w65", /* arch_name */ |
48 |
"w65", /* printable name */ |
"w65", /* printable name */ |
49 |
1, |
1, |
50 |
true, /* the default machine */ |
TRUE, /* the default machine */ |
51 |
bfd_default_compatible, |
bfd_default_compatible, |
52 |
scan_mach, |
scan_mach, |
53 |
0, |
0, |