6 |
7u83 |
1 |
/*
|
|
|
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 |
/*
|
|
|
32 |
Crown Copyright (c) 1997
|
|
|
33 |
|
|
|
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:-
|
|
|
42 |
|
|
|
43 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
44 |
reproduced upon any copies or amended versions of it;
|
|
|
45 |
|
|
|
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;
|
|
|
49 |
|
|
|
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;
|
|
|
53 |
|
|
|
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 |
|
|
|
61 |
/* 80x86/instrmacs.h */
|
|
|
62 |
|
|
|
63 |
/**********************************************************************
|
|
|
64 |
$Author: release $
|
|
|
65 |
$Date: 1998/01/17 15:55:52 $
|
|
|
66 |
$Revision: 1.1.1.1 $
|
|
|
67 |
$Log: instrmacs.h,v $
|
|
|
68 |
* Revision 1.1.1.1 1998/01/17 15:55:52 release
|
|
|
69 |
* First version to be checked into rolling release.
|
|
|
70 |
*
|
|
|
71 |
* Revision 1.12 1996/06/25 09:46:41 pwe
|
|
|
72 |
* correct round toward zero unsigned
|
|
|
73 |
*
|
|
|
74 |
* Revision 1.11 1996/05/20 14:30:39 pwe
|
|
|
75 |
* improved 64-bit handling
|
|
|
76 |
*
|
|
|
77 |
* Revision 1.10 1996/05/13 12:52:04 pwe
|
|
|
78 |
* undo premature commit
|
|
|
79 |
*
|
|
|
80 |
* Revision 1.8 1995/09/26 16:47:03 pwe
|
|
|
81 |
* compare with zero to ignore previous overflow
|
|
|
82 |
*
|
|
|
83 |
* Revision 1.7 1995/09/19 15:42:54 pwe
|
|
|
84 |
* round, fp overflow etc
|
|
|
85 |
*
|
|
|
86 |
* Revision 1.6 1995/09/15 17:39:26 pwe
|
|
|
87 |
* tidy and correct fistp
|
|
|
88 |
*
|
|
|
89 |
* Revision 1.5 1995/09/05 16:25:05 pwe
|
|
|
90 |
* specials and exception changes
|
|
|
91 |
*
|
|
|
92 |
* Revision 1.4 1995/08/14 13:53:57 pwe
|
|
|
93 |
* several corrections, tail calls and error jumps
|
|
|
94 |
*
|
|
|
95 |
* Revision 1.3 1995/02/16 18:47:17 pwe
|
|
|
96 |
* transformed subtract inverts, sets and adds carry in case of error_jump
|
|
|
97 |
*
|
|
|
98 |
* Revision 1.2 1995/01/30 12:56:28 pwe
|
|
|
99 |
* Ownership -> PWE, tidy banners
|
|
|
100 |
*
|
|
|
101 |
* Revision 1.1 1994/10/27 14:15:22 jmf
|
|
|
102 |
* Initial revision
|
|
|
103 |
*
|
|
|
104 |
* Revision 1.1 1994/07/12 14:35:21 jmf
|
|
|
105 |
* Initial revision
|
|
|
106 |
*
|
|
|
107 |
**********************************************************************/
|
|
|
108 |
|
|
|
109 |
#ifndef instrmackey
|
|
|
110 |
#define instrmackey 1
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
#define push_fl temp_push_fl()
|
|
|
114 |
#define pop_fl temp_pop_fl()
|
|
|
115 |
|
|
|
116 |
|
|
|
117 |
#define adcb "adcb"
|
|
|
118 |
#define adcl "adcl"
|
|
|
119 |
#define adcw "adcw"
|
|
|
120 |
#define addb "addb"
|
|
|
121 |
#define addl "addl"
|
|
|
122 |
#define addw "addw"
|
|
|
123 |
#define andb "andb"
|
|
|
124 |
#define andl "andl"
|
|
|
125 |
#define andw "andw"
|
|
|
126 |
#define call "call"
|
|
|
127 |
#define cltd "cltd"
|
|
|
128 |
#define cmpb "cmpb"
|
|
|
129 |
#define cmpl "cmpl"
|
|
|
130 |
#define cmpsb "cmpsb"
|
|
|
131 |
#define cmpw "cmpw"
|
|
|
132 |
#define decb "decb"
|
|
|
133 |
#define decl "decl"
|
|
|
134 |
#define decw "decw"
|
|
|
135 |
#define divb "divb"
|
|
|
136 |
#define divl "divl"
|
|
|
137 |
#define divw "divw"
|
|
|
138 |
#define fabs "fabs"
|
|
|
139 |
#define fadd "fadd"
|
|
|
140 |
#define faddp "faddp"
|
|
|
141 |
#define faddl "faddl"
|
|
|
142 |
#define fadds "fadds"
|
|
|
143 |
#define fchs "fchs"
|
|
|
144 |
#define fclex "fclex"
|
|
|
145 |
#define fcoml "fcoml"
|
|
|
146 |
#define fcomp "fcomp"
|
|
|
147 |
#define fcompp "fcompp"
|
|
|
148 |
#define fdiv "fdiv"
|
|
|
149 |
#define fdivp "fdivp"
|
|
|
150 |
#define fdivl "fdivl"
|
|
|
151 |
#define fdivrl "fdivrl"
|
|
|
152 |
#define fdivr "fdivr"
|
|
|
153 |
#define fdivrp "fdivrp"
|
|
|
154 |
#define fdivrs "fdivrs"
|
|
|
155 |
#define fdivs "fdivs"
|
|
|
156 |
#define fild "fild"
|
|
|
157 |
#define fildl "fildl"
|
|
|
158 |
#define fildll "fildll"
|
|
|
159 |
#define finit "finit"
|
|
|
160 |
#define fistp "fistp"
|
|
|
161 |
#define fistpl "fistpl"
|
|
|
162 |
#define fistpll "fistpll"
|
|
|
163 |
#define fld "fld"
|
|
|
164 |
#define fld1 "fld1"
|
|
|
165 |
#define fldl "fldl"
|
|
|
166 |
#define fldcw "fldcw"
|
|
|
167 |
#define flds "flds"
|
|
|
168 |
#define fldt "fldt"
|
|
|
169 |
#define fldz "fldz"
|
|
|
170 |
#define fmul "fmul"
|
|
|
171 |
#define fmulp "fmulp"
|
|
|
172 |
#define fmull "fmull"
|
|
|
173 |
#define fmuls "fmuls"
|
|
|
174 |
#define fnstsw "fnstsw"
|
|
|
175 |
#define frndint "frndint"
|
|
|
176 |
#define fst "fst"
|
|
|
177 |
#define fstcw "fstcw"
|
|
|
178 |
#define fstsw "fstsw"
|
|
|
179 |
#define fstl "fstl"
|
|
|
180 |
#define fstp "fstp"
|
|
|
181 |
#define fstpl "fstpl"
|
|
|
182 |
#define fstps "fstps"
|
|
|
183 |
#define fstpt "fstpt"
|
|
|
184 |
#define fsts "fsts"
|
|
|
185 |
#define fstt "fstt"
|
|
|
186 |
#define fsub "fsub"
|
|
|
187 |
#define fsubp "fsubp"
|
|
|
188 |
#define fsubl "fsubl"
|
|
|
189 |
#define fsubrl "fsubrl"
|
|
|
190 |
#define fsubr "fsubr"
|
|
|
191 |
#define fsubrp "fsubrp"
|
|
|
192 |
#define fsubrs "fsubrs"
|
|
|
193 |
#define fsubs "fsubs"
|
|
|
194 |
#define ftst "ftst"
|
|
|
195 |
#define fwait "fwait"
|
|
|
196 |
#define idivb "idivb"
|
|
|
197 |
#define idivl "idivl"
|
|
|
198 |
#define idivw "idivw"
|
|
|
199 |
#define imulb "imulb"
|
|
|
200 |
#define imull "imull"
|
|
|
201 |
#define imulw "imulw"
|
|
|
202 |
#define incb "incb"
|
|
|
203 |
#define incl "incl"
|
|
|
204 |
#define incw "incw"
|
|
|
205 |
#define into "into"
|
|
|
206 |
#define ja "ja"
|
|
|
207 |
#define jae "jae"
|
|
|
208 |
#define jb "jb"
|
|
|
209 |
#define jbe "jbe"
|
|
|
210 |
#define je "je"
|
|
|
211 |
#define jg "jg"
|
|
|
212 |
#define jge "jge"
|
|
|
213 |
#define jl "jl"
|
|
|
214 |
#define jle "jle"
|
|
|
215 |
#define jmp "jmp"
|
|
|
216 |
#define jne "jne"
|
|
|
217 |
#define jno "jno"
|
|
|
218 |
#define jns "jns"
|
|
|
219 |
#define jo "jo"
|
|
|
220 |
#define jpe "jpe"
|
|
|
221 |
#define jpo "jpo"
|
|
|
222 |
#define js "js"
|
|
|
223 |
#define leal "leal"
|
|
|
224 |
#define leave "leave"
|
|
|
225 |
#define movb "movb"
|
|
|
226 |
#define movl "movl"
|
|
|
227 |
#define movsbl "movsbl"
|
|
|
228 |
#define movsbw "movsbw"
|
|
|
229 |
#define movsb "movsb"
|
|
|
230 |
#define movsl "movsl"
|
|
|
231 |
#define movsw "movsw"
|
|
|
232 |
#define movswl "movswl"
|
|
|
233 |
#define movw "movw"
|
|
|
234 |
#define movzbl "movzbl"
|
|
|
235 |
#define movzbw "movzbw"
|
|
|
236 |
#define movzwl "movzwl"
|
|
|
237 |
#define mulb "mulb"
|
|
|
238 |
#define mull "mull"
|
|
|
239 |
#define mulw "mulw"
|
|
|
240 |
#define negb "negb"
|
|
|
241 |
#define negl "negl"
|
|
|
242 |
#define negw "negw"
|
|
|
243 |
#define nop "nop"
|
|
|
244 |
#define notb "notb"
|
|
|
245 |
#define notl "notl"
|
|
|
246 |
#define notw "notw"
|
|
|
247 |
#define orb "orb"
|
|
|
248 |
#define orl "orl"
|
|
|
249 |
#define orw "orw"
|
|
|
250 |
#define popeax "pop %eax"
|
|
|
251 |
#define popedx "pop %edx"
|
|
|
252 |
#define popebx "pop %ebx"
|
|
|
253 |
#define popecx "pop %ecx"
|
|
|
254 |
#define popedi "pop %edi"
|
|
|
255 |
#define popesi "pop %esi"
|
|
|
256 |
#define popebp "pop %ebp"
|
|
|
257 |
#define popl "popl"
|
|
|
258 |
#define pusheax "push %eax"
|
|
|
259 |
#define pushedx "push %edx"
|
|
|
260 |
#define pushecx "push %ecx"
|
|
|
261 |
#define pushesi "push %esi"
|
|
|
262 |
#define pushedi "push %edi"
|
|
|
263 |
#define pushl "pushl"
|
|
|
264 |
#define rdtsc "rdtsc"
|
|
|
265 |
#define rep "rep"
|
|
|
266 |
#define ret "ret"
|
|
|
267 |
#define rorb "rorb"
|
|
|
268 |
#define rolb "rolb"
|
|
|
269 |
#define rorw "rorw"
|
|
|
270 |
#define rolw "rolw"
|
|
|
271 |
#define rorl "rorl"
|
|
|
272 |
#define roll "roll"
|
|
|
273 |
#define sahf "sahf"
|
|
|
274 |
#define salb "salb"
|
|
|
275 |
#define sall "sall"
|
|
|
276 |
#define salw "salw"
|
|
|
277 |
#define sarb "sarb"
|
|
|
278 |
#define sarl "sarl"
|
|
|
279 |
#define sarw "sarw"
|
|
|
280 |
#define sbbb "sbbb"
|
|
|
281 |
#define sbbw "sbbw"
|
|
|
282 |
#define sbbl "sbbl"
|
|
|
283 |
#define seta "seta"
|
|
|
284 |
#define setae "setae"
|
|
|
285 |
#define setb "setb"
|
|
|
286 |
#define setbe "setbe"
|
|
|
287 |
#define sete "sete"
|
|
|
288 |
#define setg "setg"
|
|
|
289 |
#define setge "setge"
|
|
|
290 |
#define setl "setl"
|
|
|
291 |
#define setle "setle"
|
|
|
292 |
#define setmp "setmp"
|
|
|
293 |
#define setne "setne"
|
|
|
294 |
#define shlb "shlb"
|
|
|
295 |
#define shll "shll"
|
|
|
296 |
#define shlw "shlw"
|
|
|
297 |
#define shldl "shldl"
|
|
|
298 |
#define shrb "shrb"
|
|
|
299 |
#define shrl "shrl"
|
|
|
300 |
#define shrw "shrw"
|
|
|
301 |
#define shrdl "shrdl"
|
|
|
302 |
#define stc "stc"
|
|
|
303 |
#define subb "subb"
|
|
|
304 |
#define subw "subw"
|
|
|
305 |
#define subl "subl"
|
|
|
306 |
#define subbl "subbl"
|
|
|
307 |
#define testb "testb"
|
|
|
308 |
#define testl "testl"
|
|
|
309 |
#define testw "testw"
|
|
|
310 |
#define xchg "xchg"
|
|
|
311 |
#define xorb "xorb"
|
|
|
312 |
#define xorl "xorl"
|
|
|
313 |
#define xorw "xorw"
|
|
|
314 |
|
|
|
315 |
#endif
|