OLD | NEW |
1 /* BFD library support routines for the Z80 architecture. | 1 /* BFD library support routines for the Z80 architecture. |
2 Copyright 2005, 2007 Free Software Foundation, Inc. | 2 Copyright 2005, 2007 Free Software Foundation, Inc. |
3 Contributed by Arnold Metselaar <arnold_m@operamail.com> | 3 Contributed by Arnold Metselaar <arnold_m@operamail.com> |
4 | 4 |
5 This file is part of BFD, the Binary File Descriptor library. | 5 This file is part of BFD, the Binary File Descriptor library. |
6 | 6 |
7 This program is free software; you can redistribute it and/or modify | 7 This program is free software; you can redistribute it and/or modify |
8 it under the terms of the GNU General Public License as published by | 8 it under the terms of the GNU General Public License as published by |
9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
10 (at your option) any later version. | 10 (at your option) any later version. |
(...skipping 24 matching lines...) Expand all Loading... |
35 return NULL; | 35 return NULL; |
36 | 36 |
37 if (a->mach == b->mach) | 37 if (a->mach == b->mach) |
38 return a; | 38 return a; |
39 | 39 |
40 return (a->arch == bfd_arch_z80) ? & bfd_z80_arch : NULL; | 40 return (a->arch == bfd_arch_z80) ? & bfd_z80_arch : NULL; |
41 } | 41 } |
42 | 42 |
43 #define N(name,print,default,next) \ | 43 #define N(name,print,default,next) \ |
44 { 16, 16, 8, bfd_arch_z80, name, "z80", print, 0, default, \ | 44 { 16, 16, 8, bfd_arch_z80, name, "z80", print, 0, default, \ |
45 compatible, bfd_default_scan, next } | 45 compatible, bfd_default_scan, bfd_arch_default_fill, next } |
46 | 46 |
47 #define M(n) &arch_info_struct[n] | 47 #define M(n) &arch_info_struct[n] |
48 | 48 |
49 static const bfd_arch_info_type arch_info_struct[] = | 49 static const bfd_arch_info_type arch_info_struct[] = |
50 { | 50 { |
51 N (bfd_mach_z80strict, "z80-strict", FALSE, M(1)), | 51 N (bfd_mach_z80strict, "z80-strict", FALSE, M(1)), |
52 N (bfd_mach_z80, "z80", FALSE, M(2)), | 52 N (bfd_mach_z80, "z80", FALSE, M(2)), |
53 N (bfd_mach_z80full, "z80-full", FALSE, M(3)), | 53 N (bfd_mach_z80full, "z80-full", FALSE, M(3)), |
54 N (bfd_mach_r800, "r800", FALSE, NULL) | 54 N (bfd_mach_r800, "r800", FALSE, NULL) |
55 }; | 55 }; |
56 | 56 |
57 const bfd_arch_info_type bfd_z80_arch = N (0, "z80-any", TRUE, M(0)); | 57 const bfd_arch_info_type bfd_z80_arch = N (0, "z80-any", TRUE, M(0)); |
OLD | NEW |