| 1 | /* This file is tc-tic80.h |
| 2 | Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. |
| 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 |
| 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. */ |
| 20 | |
| 21 | #define TC_TIC80 |
| 22 | |
| 23 | #define TARGET_BYTES_BIG_ENDIAN 0 |
| 24 | |
| 25 | #define TARGET_ARCH bfd_arch_tic80 |
| 26 | #define TARGET_FORMAT "coff-tic80" |
| 27 | #define BFD_ARCH TARGET_ARCH |
| 28 | |
| 29 | /* We need the extra field in the fixup struct to put the relocation in. */ |
| 30 | |
| 31 | #define NEED_FX_R_TYPE |
| 32 | |
| 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 | |
| 37 | #define md_number_to_chars number_to_chars_littleendian |
| 38 | |
| 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 | |
| 43 | #define md_operand(x) |
| 44 | |
| 45 | #ifdef OBJ_COFF |
| 46 | |
| 47 | /* COFF specific definitions. */ |
| 48 | |
| 49 | #define COFF_MAGIC TIC80_ARCH_MAGIC |
| 50 | |
| 51 | /* Whether a reloc should be output. */ |
| 52 | |
| 53 | #define TC_COUNT_RELOC(fixp) ((fixp) -> fx_addsy != NULL) |
| 54 | |
| 55 | /* This macro translates between an internal fix and an coff reloc type */ |
| 56 | |
| 57 | #define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype(fixP) |
| 58 | |
| 59 | extern short tc_coff_fix2rtype (); |
| 60 | |
| 61 | #endif /* OBJ_COFF */ |
| 62 | |
| 63 | /* end of tc-tic80.h */ |