2 |
7u83 |
1 |
/*
|
6 |
7u83 |
2 |
* Copyright (c) 2002-2005 The TenDRA Project <http://www.tendra.org/>.
|
|
|
3 |
* All rights reserved.
|
|
|
4 |
*
|
|
|
5 |
* Redistribution and use in source and binary forms, with or without
|
|
|
6 |
* modification, are permitted provided that the following conditions are met:
|
|
|
7 |
*
|
|
|
8 |
* 1. Redistributions of source code must retain the above copyright notice,
|
|
|
9 |
* this list of conditions and the following disclaimer.
|
|
|
10 |
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
|
11 |
* this list of conditions and the following disclaimer in the documentation
|
|
|
12 |
* and/or other materials provided with the distribution.
|
|
|
13 |
* 3. Neither the name of The TenDRA Project nor the names of its contributors
|
|
|
14 |
* may be used to endorse or promote products derived from this software
|
|
|
15 |
* without specific, prior written permission.
|
|
|
16 |
*
|
|
|
17 |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS
|
|
|
18 |
* IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
|
19 |
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
20 |
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
|
|
|
21 |
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
|
22 |
* EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
|
23 |
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
|
|
24 |
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
|
|
25 |
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
|
|
26 |
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
|
27 |
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
28 |
*
|
|
|
29 |
* $Id$
|
|
|
30 |
*/
|
|
|
31 |
/*
|
2 |
7u83 |
32 |
Crown Copyright (c) 1997
|
6 |
7u83 |
33 |
|
2 |
7u83 |
34 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
35 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
36 |
acting through the Defence Evaluation and Research Agency
|
|
|
37 |
(DERA). It is made available to Recipients with a
|
|
|
38 |
royalty-free licence for its use, reproduction, transfer
|
|
|
39 |
to other parties and amendment for any purpose not excluding
|
|
|
40 |
product development provided that any such use et cetera
|
|
|
41 |
shall be deemed to be acceptance of the following conditions:-
|
6 |
7u83 |
42 |
|
2 |
7u83 |
43 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
44 |
reproduced upon any copies or amended versions of it;
|
6 |
7u83 |
45 |
|
2 |
7u83 |
46 |
(2) Any amended version of it shall be clearly marked to
|
|
|
47 |
show both the nature of and the organisation responsible
|
|
|
48 |
for the relevant amendment or amendments;
|
6 |
7u83 |
49 |
|
2 |
7u83 |
50 |
(3) Its onward transfer from a recipient to another
|
|
|
51 |
party shall be deemed to be that party's acceptance of
|
|
|
52 |
these conditions;
|
6 |
7u83 |
53 |
|
2 |
7u83 |
54 |
(4) DERA gives no warranty or assurance as to its
|
|
|
55 |
quality or suitability for any purpose and DERA accepts
|
|
|
56 |
no liability whatsoever in relation to any use to which
|
|
|
57 |
it may be put.
|
|
|
58 |
*/
|
|
|
59 |
/*
|
|
|
60 |
VERSION INFORMATION
|
|
|
61 |
===================
|
|
|
62 |
|
|
|
63 |
--------------------------------------------------------------------------
|
|
|
64 |
$Header: /u/g/release/CVSROOT/Source/src/installers/680x0/sunos/assembler.h,v 1.2 1998/02/04 10:43:25 release Exp $
|
|
|
65 |
--------------------------------------------------------------------------
|
|
|
66 |
$Log: assembler.h,v $
|
|
|
67 |
* Revision 1.2 1998/02/04 10:43:25 release
|
|
|
68 |
* Changes during testing.
|
|
|
69 |
*
|
|
|
70 |
* Revision 1.1.1.1 1998/01/17 15:55:50 release
|
|
|
71 |
* First version to be checked into rolling release.
|
|
|
72 |
*
|
|
|
73 |
Revision 1.1.1.1 1997/10/13 12:42:47 ma
|
|
|
74 |
First version.
|
|
|
75 |
|
|
|
76 |
Revision 1.2 1997/06/18 12:04:47 ma
|
|
|
77 |
Merged with Input Baseline changes.
|
|
|
78 |
|
|
|
79 |
Revision 1.1.1.1 1997/03/14 07:50:10 ma
|
|
|
80 |
Imported from DRA
|
|
|
81 |
|
|
|
82 |
* Revision 1.2 1996/09/20 13:51:23 john
|
|
|
83 |
* *** empty log message ***
|
|
|
84 |
*
|
|
|
85 |
* Revision 1.1.1.1 1996/09/20 10:56:52 john
|
|
|
86 |
*
|
|
|
87 |
* Revision 1.1.1.1 1996/03/26 15:45:08 john
|
|
|
88 |
*
|
|
|
89 |
* Revision 1.1 93/02/22 17:15:10 17:15:10 ra (Robert Andrews)
|
|
|
90 |
* Initial revision
|
6 |
7u83 |
91 |
*
|
2 |
7u83 |
92 |
--------------------------------------------------------------------------
|
|
|
93 |
*/
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
/*
|
|
|
97 |
TARGET CONFIGURATION FILE
|
|
|
98 |
|
|
|
99 |
If NEXT is defined, the system will use the GNU assembler (gas)
|
|
|
100 |
format, the GNU debugger (gdb) and the NeXT operating system
|
|
|
101 |
interface. Otherwise the system will use the HP assembler, the
|
|
|
102 |
HP debugger (xdb) and the HP-UX operating system interface. To
|
|
|
103 |
use gas and gdb on the HP, it is necessary to define the GNU macro.
|
|
|
104 |
*/
|
|
|
105 |
|
|
|
106 |
|
|
|
107 |
#if defined(NEXT) || defined(SUN) /* NeXT 68K or sun 68k */
|
|
|
108 |
|
|
|
109 |
#define GAS_ASSEMBLER
|
|
|
110 |
#define GDB_DEBUGGER
|
|
|
111 |
#ifdef SUN
|
|
|
112 |
#define SUN_INTERFACE
|
|
|
113 |
#else
|
|
|
114 |
#define NEXT_INTERFACE
|
|
|
115 |
#endif
|
|
|
116 |
#else /* NEXT or SUN */
|
|
|
117 |
|
|
|
118 |
#ifdef GNU
|
|
|
119 |
#define GAS_ASSEMBLER
|
|
|
120 |
#define GDB_DEBUGGER
|
|
|
121 |
#else /* GNU */
|
|
|
122 |
#define HP_ASSEMBLER
|
|
|
123 |
#define XDB_DEBUGGER
|
|
|
124 |
#endif /* GNU */
|
|
|
125 |
|
|
|
126 |
#define HP_INTERFACE
|
|
|
127 |
|
|
|
128 |
#endif /* NEXT */
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
/*
|
|
|
132 |
HP ASSEMBLER DETAILS
|
|
|
133 |
*/
|
|
|
134 |
|
|
|
135 |
#ifdef HP_ASSEMBLER
|
|
|
136 |
|
|
|
137 |
#define asm_dotty_instrs /* instructions are mov.l etc */
|
|
|
138 |
#define asm_percent_regs /* registers are %d0 etc */
|
|
|
139 |
|
|
|
140 |
#define asm_data_first /* true */
|
6 |
7u83 |
141 |
#define asm_nprefix outc(' & ')
|
|
|
142 |
#define asm_fprefix outs("0f")
|
|
|
143 |
#define asm_ind_before outc('(')
|
2 |
7u83 |
144 |
#define asm_ind_middle /* empty */
|
6 |
7u83 |
145 |
#define asm_ind_after outc(')')
|
|
|
146 |
#define asm_predec_before outs(" - (")
|
|
|
147 |
#define asm_predec_after outc(')')
|
|
|
148 |
#define asm_postinc_before outc('(')
|
|
|
149 |
#define asm_postinc_after outs(") + ")
|
|
|
150 |
#define asm_scale_before outc(',')
|
|
|
151 |
#define asm_scale outs(".l*")
|
|
|
152 |
#define asm_scale_1 outs(".l")
|
|
|
153 |
#define asm_mem_before outs("([")
|
2 |
7u83 |
154 |
#define asm_mem_second /* empty */
|
6 |
7u83 |
155 |
#define asm_mem_third outc(']')
|
|
|
156 |
#define asm_mem_after outc(')')
|
|
|
157 |
#define asm_bf_before outc('{')
|
|
|
158 |
#define asm_bf_middle outc(':')
|
|
|
159 |
#define asm_bf_after outc('}')
|
|
|
160 |
#define asm_rpair_sep outc(':')
|
|
|
161 |
#define asm_comment outc('#')
|
2 |
7u83 |
162 |
|
|
|
163 |
#define asm_cmp_reversed /* cmp instructions are reversed */
|
6 |
7u83 |
164 |
#define asm_version outs("\tversion 2")
|
|
|
165 |
#define asm_version_aux outs("\tversion 3")
|
2 |
7u83 |
166 |
|
|
|
167 |
#endif /* HP_ASSEMBLER */
|
|
|
168 |
|
|
|
169 |
|
|
|
170 |
/*
|
|
|
171 |
HP DEBUGGER DETAILS
|
|
|
172 |
*/
|
|
|
173 |
|
|
|
174 |
#ifdef XDB_DEBUGGER
|
6 |
7u83 |
175 |
#define default_diag DIAG_UNKNOWN
|
2 |
7u83 |
176 |
#endif /* XDB_DEBUGGER */
|
|
|
177 |
|
|
|
178 |
|
|
|
179 |
/*
|
|
|
180 |
HP OPERATING SYSTEM INTERFACE
|
|
|
181 |
*/
|
|
|
182 |
|
|
|
183 |
#ifdef HP_INTERFACE
|
|
|
184 |
|
6 |
7u83 |
185 |
#define hp_cc_conventions /* use HP conventions */
|
|
|
186 |
#define float_to_unsigned "___fixu"
|
|
|
187 |
#define unsigned_to_float "___floatu"
|
|
|
188 |
#define profiling_routine "mcount"
|
|
|
189 |
#define profiling_reg REG_A0
|
|
|
190 |
#define profiling_uses_lea 0
|
2 |
7u83 |
191 |
|
|
|
192 |
#endif /* HP_INTERFACE */
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
/*
|
|
|
196 |
GAS (NEXT) ASSEMBLER DETAILS
|
|
|
197 |
*/
|
|
|
198 |
|
|
|
199 |
#ifdef GAS_ASSEMBLER
|
|
|
200 |
|
6 |
7u83 |
201 |
#define asm_simple_instrs /* instructions are movl etc */
|
|
|
202 |
#define asm_simple_regs /* registers are d0 etc */
|
2 |
7u83 |
203 |
|
6 |
7u83 |
204 |
#undef sm_data_first /* false */
|
|
|
205 |
#define sm_nprefix outc('#')
|
|
|
206 |
#define sm_fprefix outs("0r")
|
|
|
207 |
#define sm_ind_before /* empty */
|
|
|
208 |
#define sm_ind_middle outc('@')
|
|
|
209 |
#define sm_ind_after /* empty */
|
|
|
210 |
#define sm_predec_before /* empty */
|
|
|
211 |
#define sm_predec_after outs("@ - ")
|
|
|
212 |
#define sm_postinc_before /* empty */
|
|
|
213 |
#define sm_postinc_after outs("@ + ")
|
|
|
214 |
#define sm_scale_before /* empty */
|
|
|
215 |
#define sm_scale outs(":l:")
|
|
|
216 |
#define sm_scale_1 outs(":l")
|
|
|
217 |
#define sm_mem_before /* empty */
|
|
|
218 |
#define sm_mem_second outc('@')
|
|
|
219 |
#define sm_mem_third outc('@')
|
|
|
220 |
#define sm_mem_after /* empty */
|
|
|
221 |
#define sm_bf_before outc('{')
|
|
|
222 |
#define sm_bf_middle outc(':')
|
|
|
223 |
#define sm_bf_after outc('}')
|
|
|
224 |
#define sm_rpair_sep outc(':')
|
|
|
225 |
#define sm_comment outc('#')
|
2 |
7u83 |
226 |
|
6 |
7u83 |
227 |
#define asm_does_jump_lens /* calculates jump lengths */
|
|
|
228 |
#define asm_uses_equals /* uses = rather than set */
|
|
|
229 |
#define asm_uses_lcomm /* uses lcomm rather than bss */
|
|
|
230 |
#define asm_no_btst_suffix /* doesn't understand btst.[bl] */
|
2 |
7u83 |
231 |
|
|
|
232 |
#endif /* GAS_ASSEMBLER */
|
|
|
233 |
|
|
|
234 |
|
|
|
235 |
/*
|
|
|
236 |
GNU DEBUGGER DETAILS
|
|
|
237 |
*/
|
|
|
238 |
|
|
|
239 |
#ifdef GDB_DEBUGGER
|
6 |
7u83 |
240 |
#define default_diag DIAG_STAB
|
2 |
7u83 |
241 |
#endif /* GDB_DEBUGGER */
|
|
|
242 |
|
|
|
243 |
|
|
|
244 |
/*
|
|
|
245 |
NEXT OPERATING SYSTEM INTERFACE, or SunOS.
|
|
|
246 |
*/
|
|
|
247 |
|
|
|
248 |
#ifdef NEXT_INTERFACE
|
|
|
249 |
|
6 |
7u83 |
250 |
#define gcc_conventions /* use gcc conventions */
|
|
|
251 |
#define float_to_unsigned "__fixunsdfsi"
|
|
|
252 |
#undef unsigned_to_float /* use built-in version */
|
|
|
253 |
#define profiling_routine "mcount"
|
|
|
254 |
#define profiling_reg REG_A0
|
|
|
255 |
#define profiling_uses_lea 1
|
2 |
7u83 |
256 |
|
|
|
257 |
#endif /* NEXT_INTERFACE */
|
|
|
258 |
|
|
|
259 |
#ifdef SUN_INTERFACE
|
|
|
260 |
|
|
|
261 |
#define gcc_conventions
|
|
|
262 |
#undef float_to_unsigned
|
|
|
263 |
#undef unsigned_to_float
|
|
|
264 |
#define profiling_routine "mcount" /* all the defines for profiling */
|
|
|
265 |
#define profiling_reg REG_A0 /* are probably wrong. */
|
|
|
266 |
#define profiling_uses_lea 1
|
|
|
267 |
#endif
|