OpenCores
URL https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk

Subversion Repositories open8_urisc

[/] [open8_urisc/] [trunk/] [gnu/] [binutils/] [gas/] [config/] [tc-z80.h] - Blame information for rev 196

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 khays
/* this is tc-z80.h
2
   Copyright 2005, 2006, 2007 Free Software Foundation, Inc.
3
 
4
   Contributed by Arnold Metselaar <arnold_m@operamail.com>
5
 
6
   This file is part of GAS, the GNU Assembler.
7
 
8
   GAS is free software; you can redistribute it and/or modify
9
   it under the terms of .the GNU General Public License as published by
10
   the Free Software Foundation; either version 3, or (at your option)
11
   any later version.
12
 
13
   GAS is distributed in the hope that it will be useful,
14
   but WITHOUT ANY WARRANTY; without even the implied warranty of
15
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
   GNU General Public License for more details.
17
 
18
   You should have received a copy of the GNU General Public License
19
   along with GAS; see the file COPYING.  If not, write to the Free
20
   Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
21
   02110-1301, USA.  */
22
 
23
#ifndef TC_Z80
24
#define TC_Z80
25
 
26
#define TARGET_ARCH   bfd_arch_z80
27
#define BFD_ARCH      TARGET_ARCH
28
#define COFF_MAGIC    0x5A80
29
#define TARGET_MACH   0
30
#define TARGET_BYTES_BIG_ENDIAN  0
31
 
32
/* If you define this macro, GAS will warn about the
33
   use of nonstandard escape sequences in a string.  */
34
#define ONLY_STANDARD_ESCAPES
35
 
36
/* GAS will call this function for any expression that can not be
37
   recognized.  When the function is called, `input_line_pointer'
38
   will point to the start of the expression.  */
39
#define md_operand(x)
40
 
41
/* This should just call either `number_to_chars_bigendian' or
42
   `number_to_chars_littleendian', whichever is appropriate.  On
43
   targets like the MIPS which support options to change the
44
   endianness, which function to call is a runtime decision.  On
45
   other targets, `md_number_to_chars' can be a simple macro.  */
46
#define md_number_to_chars number_to_chars_littleendian
47
 
48
#define TC_COUNT_RELOC(x) 1
49
 
50
#define TC_COFF_FIX2RTYPE(fixP) tc_coff_fix2rtype (fixP)
51
#define md_convert_frag(b,s,f)   as_fatal ("convert_frag called\n")
52
#define md_estimate_size_before_relax(f,s) \
53
  (as_fatal (_("estimate_size_before_relax called")), 1)
54
 
55
/* Define some functions to be called by generic code.  */
56
#define md_end               z80_md_end
57
#define md_start_line_hook() { if (z80_start_line_hook ()) continue; }
58
#define TC_CONS_FIX_NEW z80_cons_fix_new
59
 
60
extern void z80_md_end (void);
61
extern int z80_start_line_hook (void);
62
extern void z80_cons_fix_new (fragS *, int, int, expressionS *);
63
 
64
#define WORKING_DOT_WORD
65
 
66
/* If you define this macro, it means that `tc_gen_reloc' may return
67
   multiple relocation entries for a single fixup.  In this case, the
68
   return value of `tc_gen_reloc' is a pointer to a null terminated
69
   array.  */
70
#undef RELOC_EXPANSION_POSSIBLE
71
 
72
/* No shared lib support, so we don't need to ensure
73
   externally visible symbols can be overridden.  */
74
#define EXTERN_FORCE_RELOC 0
75
 
76
/* Values passed to md_apply_fix3 don't include the symbol value.  */
77
#define MD_APPLY_SYM_VALUE(FIX) 0
78
 
79
#define LISTING_WORD_SIZE 2
80
 
81
/* A single '=' is accepted as a comparison operator.  */
82
#define O_SINGLE_EQ O_eq
83
 
84
/* A '$' is used to refer to the current location or as a hex. prefix.  */
85
#define DOLLAR_DOT
86
#define DOLLAR_AMBIGU                1
87
#define LOCAL_LABELS_FB              1
88
#define LITERAL_PREFIXPERCENT_BIN
89
#define NUMBERS_WITH_SUFFIX          1
90
#define NO_PSEUDO_DOT                1
91
/* We allow single quotes to delimit character constants as
92
   well, but it is cleaner to handle that in tc-z80.c.  */
93
#define SINGLE_QUOTE_STRINGS
94
#define NO_STRING_ESCAPES
95
 
96
/* An `.lcomm' directive with no explicit alignment parameter will
97
   use this macro to set P2VAR to the alignment that a request for
98
   SIZE bytes will have.  The alignment is expressed as a power of
99
   two.  If no alignment should take place, the macro definition
100
   should do nothing.  Some targets define a `.bss' directive that is
101
   also affected by this macro.  The default definition will set
102
   P2VAR to the truncated power of two of sizes up to eight bytes.  */
103
#define TC_IMPLICIT_LCOMM_ALIGNMENT(SIZE, P2VAR) (P2VAR) = 0
104
 
105
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.