Subversion Repositories tendra.SVN

Rev

Rev 2 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 7
Line -... Line 1...
-
 
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
 */
1
/*
31
/*
2
    		 Crown Copyright (c) 1996
32
    		 Crown Copyright (c) 1996
3
    
33
 
4
    This TenDRA(r) Computer Program is subject to Copyright
34
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
35
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
36
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
37
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
38
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
39
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
40
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
41
    shall be deemed to be acceptance of the following conditions:-
12
    
42
 
13
        (1) Its Recipients shall ensure that this Notice is
43
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
44
        reproduced upon any copies or amended versions of it;
15
    
45
 
16
        (2) Any amended version of it shall be clearly marked to
46
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
47
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
48
        for the relevant amendment or amendments;
19
    
49
 
20
        (3) Its onward transfer from a recipient to another
50
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
51
        party shall be deemed to be that party's acceptance of
22
        these conditions;
52
        these conditions;
23
    
53
 
24
        (4) DERA gives no warranty or assurance as to its
54
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
55
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
56
        no liability whatsoever in relation to any use to which
27
        it may be put.
57
        it may be put.
28
*/
58
*/
Line 46... Line 76...
46
Revision 1.3  1997/09/25 06:45:17  ma
76
Revision 1.3  1997/09/25 06:45:17  ma
47
All general_proc tests passed
77
All general_proc tests passed
48
 
78
 
49
Revision 1.2  1997/06/18 10:09:39  ma
79
Revision 1.2  1997/06/18 10:09:39  ma
50
Checking in before merging with Input Baseline changes.
80
Checking in before merging with Input Baseline changes.
51
 
81
 
52
Revision 1.1.1.1  1997/03/14 07:50:15  ma
82
Revision 1.1.1.1  1997/03/14 07:50:15  ma
53
Imported from DRA
83
Imported from DRA
54
 
84
 
55
 * Revision 1.2  1996/09/20  13:51:40  john
85
 * Revision 1.2  1996/09/20  13:51:40  john
56
 * *** empty log message ***
86
 * *** empty log message ***
Line 59... Line 89...
59
 *
89
 *
60
 * Revision 1.1.1.1  1996/03/26  15:45:15  john
90
 * Revision 1.1.1.1  1996/03/26  15:45:15  john
61
 *
91
 *
62
 * Revision 1.2  94/02/21  16:00:39  16:00:39  ra (Robert Andrews)
92
 * Revision 1.2  94/02/21  16:00:39  16:00:39  ra (Robert Andrews)
63
 * Declare functions with no arguments using ( void ).
93
 * Declare functions with no arguments using ( void ).
64
 * 
94
 *
65
 * Revision 1.1  93/02/22  17:16:09  17:16:09  ra (Robert Andrews)
95
 * Revision 1.1  93/02/22  17:16:09  17:16:09  ra (Robert Andrews)
66
 * Initial revision
96
 * Initial revision
67
 * 
97
 *
68
--------------------------------------------------------------------------
98
--------------------------------------------------------------------------
69
*/
99
*/
70
 
100
 
71
 
101
 
72
#ifndef MACH_OP_INCLUDED
102
#ifndef MACH_OP_INCLUDED
73
#define MACH_OP_INCLUDED
103
#define MACH_OP_INCLUDED
74
 
104
 
75
extern bool check_op PROTO_S ( ( mach_op *, int ) ) ;
105
extern bool check_op(mach_op *, int);
76
extern bool equal_op PROTO_S ( ( mach_op *, mach_op * ) ) ;
106
extern bool equal_op(mach_op *, mach_op *);
77
extern void free_mach_op PROTO_S ( ( mach_op * ) ) ;
107
extern void free_mach_op(mach_op *);
78
extern mach_op * new_mach_op PROTO_S ( ( void ) ) ;
108
extern mach_op * new_mach_op(void);
79
 
109
 
80
extern mach_op * make_bitfield_op PROTO_S ( ( mach_op *, int, int ) ) ;
110
extern mach_op * make_bitfield_op(mach_op *, int, int);
81
extern mach_op * make_dec_sp PROTO_S ( ( void ) ) ;
111
extern mach_op * make_dec_sp(void);
82
extern mach_op * make_extern PROTO_S ( ( char *, long ) ) ;
112
extern mach_op * make_extern(char *, long);
83
extern mach_op * make_extern_data PROTO_S ( ( char *, long ) ) ;
113
extern mach_op * make_extern_data(char *, long);
84
extern mach_op * make_extern_ind PROTO_S ( ( char *, long ) ) ;
114
extern mach_op * make_extern_ind(char *, long);
85
extern mach_op * make_float_data PROTO_S ( ( flt * ) ) ;
115
extern mach_op * make_float_data(flt *);
86
extern mach_op * make_hex_data PROTO_S ( ( long ) ) ;
116
extern mach_op * make_hex_data(long);
87
extern mach_op * make_hex_value PROTO_S ( ( long ) ) ;
117
extern mach_op * make_hex_value(long);
88
extern mach_op * make_inc_sp PROTO_S ( ( void ) ) ;
118
extern mach_op * make_inc_sp(void);
89
extern mach_op * make_ind_rel_ap PROTO_S ( ( long, long ) ) ;
119
extern mach_op * make_ind_rel_ap(long, long);
90
extern mach_op * make_index_op PROTO_S ( ( mach_op *, mach_op *, int ) ) ;
120
extern mach_op * make_index_op(mach_op *, mach_op *, int);
91
extern mach_op * make_indirect PROTO_S ( ( int, long ) ) ;
121
extern mach_op * make_indirect(int, long);
92
extern mach_op * make_int_data PROTO_S ( ( long ) ) ;
122
extern mach_op * make_int_data(long);
93
extern mach_op * make_lab PROTO_S ( ( long, long ) ) ;
123
extern mach_op * make_lab(long, long);
94
extern mach_op * make_lab_data PROTO_S ( ( long, long ) ) ;
124
extern mach_op * make_lab_data(long, long);
95
extern mach_op * make_lab_diff PROTO_S ( ( long, long ) ) ;
125
extern mach_op * make_lab_diff(long, long);
96
extern mach_op * make_lab_ind PROTO_S ( ( long, long ) ) ;
126
extern mach_op * make_lab_ind(long, long);
97
extern mach_op * make_postinc PROTO_S ( ( int ) ) ;
127
extern mach_op * make_postinc(int);
98
extern mach_op * make_reg_index PROTO_S ( ( int, int, long, int ) ) ;
128
extern mach_op * make_reg_index(int, int, long, int);
99
extern mach_op * make_reg_pair PROTO_S ( ( int, int ) ) ;
129
extern mach_op * make_reg_pair(int, int);
100
extern mach_op * make_register PROTO_S ( ( int ) ) ;
130
extern mach_op * make_register(int);
101
extern mach_op * make_rel_ap PROTO_S ( ( long ) ) ;
131
extern mach_op * make_rel_ap(long);
102
 
132
 
103
#ifndef tdf3
133
#ifndef tdf3
104
extern mach_op * make_rel_ap2 PROTO_S ( ( long ) ) ;
134
extern mach_op * make_rel_ap2(long);
105
extern mach_op * make_rel_sp PROTO_S ( ( long ) ) ;
135
extern mach_op * make_rel_sp(long);
106
extern mach_op * make_ind_rel_ap2 PROTO_S ( ( long, long ) ) ;
136
extern mach_op * make_ind_rel_ap2(long, long);
107
extern mach_op * make_ind_rel_ap3 PROTO_S ( ( long, long ) ) ;
137
extern mach_op * make_ind_rel_ap3(long, long);
108
extern mach_op * make_predec PROTO_S ( ( int ) ) ;
138
extern mach_op * make_predec(int);
109
extern mach_op * make_ldisp PROTO_S ( ( long ) ) ;
139
extern mach_op * make_ldisp(long);
110
#endif
140
#endif
111
 
141
 
112
extern mach_op * make_special PROTO_S ( ( char * ) ) ;
142
extern mach_op * make_special(char *);
113
extern mach_op * make_special_data PROTO_S ( ( char * ) ) ;
143
extern mach_op * make_special_data(char *);
114
extern mach_op * make_value PROTO_S ( ( long ) ) ;
144
extern mach_op * make_value(long);
115
 
145
 
116
extern long special_no ;
146
extern long special_no;
117
extern char *special_str ;
147
extern char *special_str;
118
 
148
 
119
extern int tmp_reg_prefer ;
149
extern int tmp_reg_prefer;
120
extern int tmp_reg_status ;
150
extern int tmp_reg_status;
121
extern void avoid_tmp_reg PROTO_S ( ( int ) ) ;
151
extern void avoid_tmp_reg(int);
122
extern int next_tmp_reg PROTO_S ( ( void ) ) ;
152
extern int next_tmp_reg(void);
123
extern int tmp_reg PROTO_S ( ( int, mach_op * ) ) ;
153
extern int tmp_reg(int, mach_op *);
124
 
154
 
125
#endif
155
#endif