2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
3 |
|
|
|
4 |
This TenDRA(r) Computer Program is subject to Copyright
|
|
|
5 |
owned by the United Kingdom Secretary of State for Defence
|
|
|
6 |
acting through the Defence Evaluation and Research Agency
|
|
|
7 |
(DERA). It is made available to Recipients with a
|
|
|
8 |
royalty-free licence for its use, reproduction, transfer
|
|
|
9 |
to other parties and amendment for any purpose not excluding
|
|
|
10 |
product development provided that any such use et cetera
|
|
|
11 |
shall be deemed to be acceptance of the following conditions:-
|
|
|
12 |
|
|
|
13 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
14 |
reproduced upon any copies or amended versions of it;
|
|
|
15 |
|
|
|
16 |
(2) Any amended version of it shall be clearly marked to
|
|
|
17 |
show both the nature of and the organisation responsible
|
|
|
18 |
for the relevant amendment or amendments;
|
|
|
19 |
|
|
|
20 |
(3) Its onward transfer from a recipient to another
|
|
|
21 |
party shall be deemed to be that party's acceptance of
|
|
|
22 |
these conditions;
|
|
|
23 |
|
|
|
24 |
(4) DERA gives no warranty or assurance as to its
|
|
|
25 |
quality or suitability for any purpose and DERA accepts
|
|
|
26 |
no liability whatsoever in relation to any use to which
|
|
|
27 |
it may be put.
|
|
|
28 |
*/
|
|
|
29 |
/*
|
|
|
30 |
VERSION INFORMATION
|
|
|
31 |
===================
|
|
|
32 |
|
|
|
33 |
--------------------------------------------------------------------------
|
|
|
34 |
$Header: /u/g/release/CVSROOT/Source/src/installers/680x0/sunos/assembler.h,v 1.2 1998/02/04 10:43:25 release Exp $
|
|
|
35 |
--------------------------------------------------------------------------
|
|
|
36 |
$Log: assembler.h,v $
|
|
|
37 |
* Revision 1.2 1998/02/04 10:43:25 release
|
|
|
38 |
* Changes during testing.
|
|
|
39 |
*
|
|
|
40 |
* Revision 1.1.1.1 1998/01/17 15:55:50 release
|
|
|
41 |
* First version to be checked into rolling release.
|
|
|
42 |
*
|
|
|
43 |
Revision 1.1.1.1 1997/10/13 12:42:47 ma
|
|
|
44 |
First version.
|
|
|
45 |
|
|
|
46 |
Revision 1.2 1997/06/18 12:04:47 ma
|
|
|
47 |
Merged with Input Baseline changes.
|
|
|
48 |
|
|
|
49 |
Revision 1.1.1.1 1997/03/14 07:50:10 ma
|
|
|
50 |
Imported from DRA
|
|
|
51 |
|
|
|
52 |
* Revision 1.2 1996/09/20 13:51:23 john
|
|
|
53 |
* *** empty log message ***
|
|
|
54 |
*
|
|
|
55 |
* Revision 1.1.1.1 1996/09/20 10:56:52 john
|
|
|
56 |
*
|
|
|
57 |
* Revision 1.1.1.1 1996/03/26 15:45:08 john
|
|
|
58 |
*
|
|
|
59 |
* Revision 1.1 93/02/22 17:15:10 17:15:10 ra (Robert Andrews)
|
|
|
60 |
* Initial revision
|
|
|
61 |
*
|
|
|
62 |
--------------------------------------------------------------------------
|
|
|
63 |
*/
|
|
|
64 |
|
|
|
65 |
|
|
|
66 |
/*
|
|
|
67 |
TARGET CONFIGURATION FILE
|
|
|
68 |
|
|
|
69 |
If NEXT is defined, the system will use the GNU assembler (gas)
|
|
|
70 |
format, the GNU debugger (gdb) and the NeXT operating system
|
|
|
71 |
interface. Otherwise the system will use the HP assembler, the
|
|
|
72 |
HP debugger (xdb) and the HP-UX operating system interface. To
|
|
|
73 |
use gas and gdb on the HP, it is necessary to define the GNU macro.
|
|
|
74 |
*/
|
|
|
75 |
|
|
|
76 |
|
|
|
77 |
#if defined(NEXT) || defined(SUN) /* NeXT 68K or sun 68k */
|
|
|
78 |
|
|
|
79 |
#define GAS_ASSEMBLER
|
|
|
80 |
#define GDB_DEBUGGER
|
|
|
81 |
#ifdef SUN
|
|
|
82 |
#define SUN_INTERFACE
|
|
|
83 |
#else
|
|
|
84 |
#define NEXT_INTERFACE
|
|
|
85 |
#endif
|
|
|
86 |
#else /* NEXT or SUN */
|
|
|
87 |
|
|
|
88 |
#ifdef GNU
|
|
|
89 |
#define GAS_ASSEMBLER
|
|
|
90 |
#define GDB_DEBUGGER
|
|
|
91 |
#else /* GNU */
|
|
|
92 |
#define HP_ASSEMBLER
|
|
|
93 |
#define XDB_DEBUGGER
|
|
|
94 |
#endif /* GNU */
|
|
|
95 |
|
|
|
96 |
#define HP_INTERFACE
|
|
|
97 |
|
|
|
98 |
#endif /* NEXT */
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
/*
|
|
|
102 |
HP ASSEMBLER DETAILS
|
|
|
103 |
*/
|
|
|
104 |
|
|
|
105 |
#ifdef HP_ASSEMBLER
|
|
|
106 |
|
|
|
107 |
#define asm_dotty_instrs /* instructions are mov.l etc */
|
|
|
108 |
#define asm_percent_regs /* registers are %d0 etc */
|
|
|
109 |
|
|
|
110 |
#define asm_data_first /* true */
|
|
|
111 |
#define asm_nprefix outc ( '&' )
|
|
|
112 |
#define asm_fprefix outs ( "0f" )
|
|
|
113 |
#define asm_ind_before outc ( '(' )
|
|
|
114 |
#define asm_ind_middle /* empty */
|
|
|
115 |
#define asm_ind_after outc ( ')' )
|
|
|
116 |
#define asm_predec_before outs ( "-(" )
|
|
|
117 |
#define asm_predec_after outc ( ')' )
|
|
|
118 |
#define asm_postinc_before outc ( '(' )
|
|
|
119 |
#define asm_postinc_after outs ( ")+" )
|
|
|
120 |
#define asm_scale_before outc ( ',' )
|
|
|
121 |
#define asm_scale outs ( ".l*" )
|
|
|
122 |
#define asm_scale_1 outs ( ".l" )
|
|
|
123 |
#define asm_mem_before outs ( "([" )
|
|
|
124 |
#define asm_mem_second /* empty */
|
|
|
125 |
#define asm_mem_third outc ( ']' )
|
|
|
126 |
#define asm_mem_after outc ( ')' )
|
|
|
127 |
#define asm_bf_before outc ( '{' )
|
|
|
128 |
#define asm_bf_middle outc ( ':' )
|
|
|
129 |
#define asm_bf_after outc ( '}' )
|
|
|
130 |
#define asm_rpair_sep outc ( ':' )
|
|
|
131 |
#define asm_comment outc ( '#' )
|
|
|
132 |
|
|
|
133 |
#define asm_cmp_reversed /* cmp instructions are reversed */
|
|
|
134 |
#define asm_version outs ( "\tversion 2" )
|
|
|
135 |
#define asm_version_aux outs ( "\tversion 3" )
|
|
|
136 |
|
|
|
137 |
#endif /* HP_ASSEMBLER */
|
|
|
138 |
|
|
|
139 |
|
|
|
140 |
/*
|
|
|
141 |
HP DEBUGGER DETAILS
|
|
|
142 |
*/
|
|
|
143 |
|
|
|
144 |
#ifdef XDB_DEBUGGER
|
|
|
145 |
#define default_diag DIAG_UNKNOWN
|
|
|
146 |
#endif /* XDB_DEBUGGER */
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
/*
|
|
|
150 |
HP OPERATING SYSTEM INTERFACE
|
|
|
151 |
*/
|
|
|
152 |
|
|
|
153 |
#ifdef HP_INTERFACE
|
|
|
154 |
|
|
|
155 |
#define hp_cc_conventions /* use HP conventions */
|
|
|
156 |
#define float_to_unsigned "___fixu"
|
|
|
157 |
#define unsigned_to_float "___floatu"
|
|
|
158 |
#define profiling_routine "mcount"
|
|
|
159 |
#define profiling_reg REG_A0
|
|
|
160 |
#define profiling_uses_lea 0
|
|
|
161 |
|
|
|
162 |
#endif /* HP_INTERFACE */
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
/*
|
|
|
166 |
GAS (NEXT) ASSEMBLER DETAILS
|
|
|
167 |
*/
|
|
|
168 |
|
|
|
169 |
#ifdef GAS_ASSEMBLER
|
|
|
170 |
|
|
|
171 |
#define asm_simple_instrs /* instructions are movl etc */
|
|
|
172 |
#define asm_simple_regs /* registers are d0 etc */
|
|
|
173 |
|
|
|
174 |
#undef asm_data_first /* false */
|
|
|
175 |
#define asm_nprefix outc ( '#' )
|
|
|
176 |
#define asm_fprefix outs ( "0r" )
|
|
|
177 |
#define asm_ind_before /* empty */
|
|
|
178 |
#define asm_ind_middle outc ( '@' )
|
|
|
179 |
#define asm_ind_after /* empty */
|
|
|
180 |
#define asm_predec_before /* empty */
|
|
|
181 |
#define asm_predec_after outs ( "@-" )
|
|
|
182 |
#define asm_postinc_before /* empty */
|
|
|
183 |
#define asm_postinc_after outs ( "@+" )
|
|
|
184 |
#define asm_scale_before /* empty */
|
|
|
185 |
#define asm_scale outs ( ":l:" )
|
|
|
186 |
#define asm_scale_1 outs ( ":l" )
|
|
|
187 |
#define asm_mem_before /* empty */
|
|
|
188 |
#define asm_mem_second outc ( '@' )
|
|
|
189 |
#define asm_mem_third outc ( '@' )
|
|
|
190 |
#define asm_mem_after /* empty */
|
|
|
191 |
#define asm_bf_before outc ( '{' )
|
|
|
192 |
#define asm_bf_middle outc ( ':' )
|
|
|
193 |
#define asm_bf_after outc ( '}' )
|
|
|
194 |
#define asm_rpair_sep outc ( ':' )
|
|
|
195 |
#define asm_comment outc ( '#' )
|
|
|
196 |
|
|
|
197 |
#define asm_does_jump_lens /* calculates jump lengths */
|
|
|
198 |
#define asm_uses_equals /* uses = rather than set */
|
|
|
199 |
#define asm_uses_lcomm /* uses lcomm rather than bss */
|
|
|
200 |
#define asm_no_btst_suffix /* doesn't understand btst.[bl] */
|
|
|
201 |
|
|
|
202 |
#endif /* GAS_ASSEMBLER */
|
|
|
203 |
|
|
|
204 |
|
|
|
205 |
/*
|
|
|
206 |
GNU DEBUGGER DETAILS
|
|
|
207 |
*/
|
|
|
208 |
|
|
|
209 |
#ifdef GDB_DEBUGGER
|
|
|
210 |
#define default_diag DIAG_STAB
|
|
|
211 |
#endif /* GDB_DEBUGGER */
|
|
|
212 |
|
|
|
213 |
|
|
|
214 |
/*
|
|
|
215 |
NEXT OPERATING SYSTEM INTERFACE, or SunOS.
|
|
|
216 |
*/
|
|
|
217 |
|
|
|
218 |
#ifdef NEXT_INTERFACE
|
|
|
219 |
|
|
|
220 |
#define gcc_conventions /* use gcc conventions */
|
|
|
221 |
#define float_to_unsigned "__fixunsdfsi"
|
|
|
222 |
#undef unsigned_to_float /* use built-in version */
|
|
|
223 |
#define profiling_routine "mcount"
|
|
|
224 |
#define profiling_reg REG_A0
|
|
|
225 |
#define profiling_uses_lea 1
|
|
|
226 |
|
|
|
227 |
#endif /* NEXT_INTERFACE */
|
|
|
228 |
|
|
|
229 |
#ifdef SUN_INTERFACE
|
|
|
230 |
|
|
|
231 |
#define gcc_conventions
|
|
|
232 |
#undef float_to_unsigned
|
|
|
233 |
#undef unsigned_to_float
|
|
|
234 |
#define profiling_routine "mcount" /* all the defines for profiling */
|
|
|
235 |
#define profiling_reg REG_A0 /* are probably wrong. */
|
|
|
236 |
#define profiling_uses_lea 1
|
|
|
237 |
#endif
|
|
|
238 |
|