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 |
|
|
|
31 |
/* 80x86/instrdecs.h */
|
|
|
32 |
|
|
|
33 |
/**********************************************************************
|
|
|
34 |
$Author: release $
|
|
|
35 |
$Date: 1998/01/17 15:55:51 $
|
|
|
36 |
$Revision: 1.1.1.1 $
|
|
|
37 |
$Log: instr.h,v $
|
|
|
38 |
* Revision 1.1.1.1 1998/01/17 15:55:51 release
|
|
|
39 |
* First version to be checked into rolling release.
|
|
|
40 |
*
|
|
|
41 |
* Revision 1.13 1996/12/13 14:39:31 pwe
|
|
|
42 |
* prep NEWDIAGS
|
|
|
43 |
*
|
|
|
44 |
* Revision 1.12 1996/05/20 14:30:36 pwe
|
|
|
45 |
* improved 64-bit handling
|
|
|
46 |
*
|
|
|
47 |
* Revision 1.11 1996/05/13 12:52:01 pwe
|
|
|
48 |
* undo premature commit
|
|
|
49 |
*
|
|
|
50 |
* Revision 1.9 1995/11/01 18:41:26 pwe
|
|
|
51 |
* PIC tail_call and exception handling
|
|
|
52 |
*
|
|
|
53 |
* Revision 1.8 1995/09/13 14:25:20 pwe
|
|
|
54 |
* tidy for gcc
|
|
|
55 |
*
|
|
|
56 |
* Revision 1.7 1995/09/08 12:51:25 pwe
|
|
|
57 |
* exceptions improved
|
|
|
58 |
*
|
|
|
59 |
* Revision 1.6 1995/08/30 16:06:48 pwe
|
|
|
60 |
* prepare exception trapping
|
|
|
61 |
*
|
|
|
62 |
* Revision 1.5 1995/08/14 13:53:54 pwe
|
|
|
63 |
* several corrections, tail calls and error jumps
|
|
|
64 |
*
|
|
|
65 |
* Revision 1.4 1995/08/04 08:29:38 pwe
|
|
|
66 |
* 4.0 general procs implemented
|
|
|
67 |
*
|
|
|
68 |
* Revision 1.3 1995/02/16 18:47:16 pwe
|
|
|
69 |
* transformed subtract inverts, sets and adds carry in case of error_jump
|
|
|
70 |
*
|
|
|
71 |
* Revision 1.2 1995/01/30 12:56:27 pwe
|
|
|
72 |
* Ownership -> PWE, tidy banners
|
|
|
73 |
*
|
|
|
74 |
* Revision 1.1 1994/10/27 14:15:22 jmf
|
|
|
75 |
* Initial revision
|
|
|
76 |
*
|
|
|
77 |
* Revision 1.1 1994/07/12 14:35:04 jmf
|
|
|
78 |
* Initial revision
|
|
|
79 |
*
|
|
|
80 |
**********************************************************************/
|
|
|
81 |
|
|
|
82 |
#ifndef indecs_key
|
|
|
83 |
#define indecs_key 1
|
|
|
84 |
|
|
|
85 |
|
|
|
86 |
|
|
|
87 |
extern void ins0 PROTO_S ((char *i));
|
|
|
88 |
extern void ins1 PROTO_S ((char *i, int s1, where a1));
|
|
|
89 |
extern void ins1lit PROTO_S ((char *i, int s1, where a1));
|
|
|
90 |
extern void ins1ind PROTO_S ((char *i, int s1, where a1));
|
|
|
91 |
extern void ins2 PROTO_S ((char *i, int s1, int s2, where a1, where a2));
|
|
|
92 |
extern void ins3 PROTO_S((char *i, int s1, int s2, int s3, where a1,
|
|
|
93 |
where a2, where a3));
|
|
|
94 |
extern void set_label PROTO_S ((exp jr));
|
|
|
95 |
extern void simplest_set_lab PROTO_S ((int labno));
|
|
|
96 |
extern void simple_set_label PROTO_S ((int labno));
|
|
|
97 |
extern void jump PROTO_S ((exp jr, int with_fl_reg));
|
|
|
98 |
extern void branch PROTO_S ((int test_no, exp jr, int sg, int shnm));
|
|
|
99 |
extern void simple_branch PROTO_S ((char * j, int labno));
|
|
|
100 |
extern void jmp_overflow PROTO_S ((exp jr, int sg, int inv));
|
|
|
101 |
extern void trap_overflow PROTO_S ((int sg, int inv));
|
|
|
102 |
extern void test_trap PROTO_S ((int test_no, int sg, int shnm));
|
|
|
103 |
extern void trap_ins PROTO_S ((int s));
|
|
|
104 |
extern void set_env_off PROTO_S ((int stack_pos, exp id));
|
|
|
105 |
extern void envoff_operand PROTO_S ((exp id, int off));
|
|
|
106 |
extern void envsize_operand PROTO_S ((exp id));
|
|
|
107 |
extern void ldisp PROTO_S ((void));
|
|
|
108 |
extern char *margin;
|
|
|
109 |
extern char *spx;
|
|
|
110 |
extern char *sep;
|
|
|
111 |
extern void outreal PROTO_S ((exp e));
|
|
|
112 |
extern void rel_sp PROTO_S ((int i, int b));
|
|
|
113 |
extern void rel_cp PROTO_S ((int i, int b));
|
|
|
114 |
extern void rel_ap PROTO_S ((int i, int b));
|
|
|
115 |
extern void rel_ap1 PROTO_S ((int i, int b));
|
|
|
116 |
extern void regn PROTO_S ((int regs, int rdisp, exp ldname, int le));
|
|
|
117 |
extern void ind_reg PROTO_S((int regs, int rdisp, int offset,
|
|
|
118 |
exp ldname, int b));
|
|
|
119 |
extern void extn PROTO_S ((exp id, int off, int b));
|
|
|
120 |
extern void int_operand PROTO_S ((int k, int le));
|
|
|
121 |
extern void const_extn PROTO_S ((exp ident, int noff));
|
|
|
122 |
extern void proc_extn PROTO_S ((exp ident, int noff));
|
|
|
123 |
extern void label_operand PROTO_S ((exp e));
|
|
|
124 |
extern void index_opnd PROTO_S ((where whmain, where wh, int scale));
|
|
|
125 |
extern void mult_op PROTO_S((int inc, where rmain,
|
|
|
126 |
where rind, int scale, where dest));
|
|
|
127 |
extern void caseins PROTO_S((int sz, exp arg, int min, int max, int *v,
|
|
|
128 |
int exhaustive, int in_eax, exp case_exp));
|
|
|
129 |
extern int get_reg_no PROTO_S ((int regs));
|
|
|
130 |
extern int extra_stack;
|
|
|
131 |
extern int max_extra_stack;
|
|
|
132 |
extern void const_intnl PROTO_S ((int addr, int lab, int off));
|
|
|
133 |
extern void discard_fstack PROTO_S ((void));
|
|
|
134 |
extern void discard_st1 PROTO_S ((void));
|
|
|
135 |
extern void load_stack0 PROTO_S ((void));
|
|
|
136 |
extern int no_frame;
|
|
|
137 |
extern void outbp PROTO_S ((void));
|
|
|
138 |
extern void set_stack_from_bp PROTO_S ((void));
|
|
|
139 |
extern int last_jump_label;
|
|
|
140 |
extern void set_lv_label PROTO_S ((exp e));
|
|
|
141 |
extern void setcc PROTO_S ((int test_no, int sg, int shnm));
|
|
|
142 |
|
|
|
143 |
extern void testah PROTO_S ((int mask));
|
|
|
144 |
extern exp make_extn PROTO_S ((char * n, shape s, int v));
|
|
|
145 |
|
|
|
146 |
extern void rotshift64 PROTO_S ((int shft, int sig, where wshift));
|
|
|
147 |
|
|
|
148 |
/* temporary */
|
|
|
149 |
extern void temp_push_fl PROTO_S ((void));
|
|
|
150 |
extern void temp_pop_fl PROTO_S ((void));
|
|
|
151 |
|
|
|
152 |
|
|
|
153 |
#endif
|
|
|
154 |
|