1 /* This file is tc-tic80.h
2 Copyright 1996, 1997, 2000 Free Software Foundation, Inc.
4 This file is part of GAS, the GNU Assembler.
6 GAS is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
11 GAS is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with GAS; see the file COPYING. If not, write to the Free
18 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
23 #define TARGET_BYTES_BIG_ENDIAN 0
25 #define TARGET_ARCH bfd_arch_tic80
26 #define TARGET_FORMAT "coff-tic80"
27 #define BFD_ARCH TARGET_ARCH
29 /* We need the extra field in the fixup struct to put the relocation in. */
31 #define NEED_FX_R_TYPE
33 /* Define md_number_to_chars as the appropriate standard big endian or
34 little endian function. Should we someday support endianness as a
35 runtime decision, this will need to change. */
37 #define md_number_to_chars number_to_chars_littleendian
39 /* Define away the call to md_operand in the expression parsing code.
40 This is called whenever the expression parser can't parse the input
41 and gives the assembler backend a chance to deal with it instead. */
47 /* COFF specific definitions. */
49 #define COFF_MAGIC TIC80_ARCH_MAGIC
51 /* Whether a reloc should be output. */
53 #define TC_COUNT_RELOC(fixp) ((fixp) -> fx_addsy != NULL)
55 /* This macro translates between an internal fix and a coff reloc type. */
57 #define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP)
59 extern short tc_coff_fix2rtype
PARAMS ((struct fix
*));