]>
Commit | Line | Data |
---|---|---|
64556643 | 1 | /* This file is tc-tic80.h |
16171d71 | 2 | Copyright (C) 1996, 1997, Free Software Foundation, Inc. |
64556643 FF |
3 | |
4 | This file is part of GAS, the GNU Assembler. | |
5 | ||
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) | |
9 | any later version. | |
10 | ||
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. | |
15 | ||
16 | You should have received a copy of the GNU General Public License | |
414a1069 ILT |
17 | along with GAS; see the file COPYING. If not, write to the Free |
18 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
19 | 02111-1307, USA. */ | |
64556643 FF |
20 | |
21 | #define TC_TIC80 | |
22 | ||
16171d71 FF |
23 | #define TARGET_BYTES_BIG_ENDIAN 0 |
24 | ||
64556643 | 25 | #define TARGET_ARCH bfd_arch_tic80 |
af16e411 | 26 | #define TARGET_FORMAT "coff-tic80" |
64556643 | 27 | #define BFD_ARCH TARGET_ARCH |
f1ce6af4 | 28 | |
d160b69e FF |
29 | /* We need the extra field in the fixup struct to put the relocation in. */ |
30 | ||
31 | #define NEED_FX_R_TYPE | |
32 | ||
e0706ea8 FF |
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. */ | |
36 | ||
f1ce6af4 FF |
37 | #define md_number_to_chars number_to_chars_littleendian |
38 | ||
e0706ea8 FF |
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. */ | |
42 | ||
f1ce6af4 FF |
43 | #define md_operand(x) |
44 | ||
45 | #ifdef OBJ_COFF | |
e0706ea8 | 46 | |
f1ce6af4 FF |
47 | /* COFF specific definitions. */ |
48 | ||
49 | #define COFF_MAGIC TIC80_ARCH_MAGIC | |
50 | ||
51 | /* Whether a reloc should be output. */ | |
e0706ea8 | 52 | |
f1ce6af4 FF |
53 | #define TC_COUNT_RELOC(fixp) ((fixp) -> fx_addsy != NULL) |
54 | ||
55 | /* This macro translates between an internal fix and an coff reloc type */ | |
e0706ea8 | 56 | |
f1ce6af4 | 57 | #define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP) |
e0706ea8 | 58 | |
f1ce6af4 FF |
59 | extern short tc_coff_fix2rtype (); |
60 | ||
61 | #endif /* OBJ_COFF */ | |
64556643 FF |
62 | |
63 | /* end of tc-tic80.h */ |