xref: /openbsd/gnu/usr.bin/binutils/bfd/cpu-m68hc12.c (revision cf2f2c56)
15f210c2aSfgsch /* BFD support for the Motorola 68HC12 processor
2d2201f2fSdrahn    Copyright 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
35f210c2aSfgsch 
45f210c2aSfgsch This file is part of BFD, the Binary File Descriptor library.
55f210c2aSfgsch 
65f210c2aSfgsch This program is free software; you can redistribute it and/or modify
75f210c2aSfgsch it under the terms of the GNU General Public License as published by
85f210c2aSfgsch the Free Software Foundation; either version 2 of the License, or
95f210c2aSfgsch (at your option) any later version.
105f210c2aSfgsch 
115f210c2aSfgsch This program is distributed in the hope that it will be useful,
125f210c2aSfgsch but WITHOUT ANY WARRANTY; without even the implied warranty of
135f210c2aSfgsch MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
145f210c2aSfgsch GNU General Public License for more details.
155f210c2aSfgsch 
165f210c2aSfgsch You should have received a copy of the GNU General Public License
175f210c2aSfgsch along with this program; if not, write to the Free Software
185f210c2aSfgsch Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
195f210c2aSfgsch 
205f210c2aSfgsch #include "bfd.h"
215f210c2aSfgsch #include "sysdep.h"
225f210c2aSfgsch #include "libbfd.h"
235f210c2aSfgsch 
24d2201f2fSdrahn const bfd_arch_info_type bfd_m68hc12s_arch =
25d2201f2fSdrahn {
26d2201f2fSdrahn     16,	/* 16 bits in a word */
27*cf2f2c56Smiod     32,	/* 16 bits in an address */
28d2201f2fSdrahn     8,	/* 8 bits in a byte */
29d2201f2fSdrahn     bfd_arch_m68hc12,
30d2201f2fSdrahn     bfd_mach_m6812s,
31*cf2f2c56Smiod     "m68hc12:HCS12",
32*cf2f2c56Smiod     "m68hc12",
33d2201f2fSdrahn     4, /* section alignment power */
34*cf2f2c56Smiod     TRUE,
35d2201f2fSdrahn     bfd_default_compatible,
36*cf2f2c56Smiod     bfd_default_scan,
37d2201f2fSdrahn     0,
38d2201f2fSdrahn };
39d2201f2fSdrahn 
405f210c2aSfgsch const bfd_arch_info_type bfd_m68hc12_arch =
415f210c2aSfgsch {
425f210c2aSfgsch     16,	/* 16 bits in a word */
43*cf2f2c56Smiod     32,	/* 16 bits in an address */
445f210c2aSfgsch     8,	/* 8 bits in a byte */
455f210c2aSfgsch     bfd_arch_m68hc12,
465f210c2aSfgsch     0,
475f210c2aSfgsch     "m68hc12",
485f210c2aSfgsch     "m68hc12",
495f210c2aSfgsch     4, /* section alignment power */
50d2201f2fSdrahn     TRUE,
515f210c2aSfgsch     bfd_default_compatible,
52*cf2f2c56Smiod     bfd_default_scan,
53d2201f2fSdrahn     &bfd_m68hc12s_arch,
545f210c2aSfgsch };
55