Subversion Repositories tendra.SVN

Rev

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

Rev 5 Rev 6
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) 1997
32
    		 Crown Copyright (c) 1997
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 76... Line 106...
76
 * Initial revision
106
 * Initial revision
77
 *
107
 *
78
 * Revision 1.2  93/08/27  11:28:10  11:28:10  ra (Robert Andrews)
108
 * Revision 1.2  93/08/27  11:28:10  11:28:10  ra (Robert Andrews)
79
 *  ext_name now takes an int not a long (I got the comment in inst_fmt.c
109
 *  ext_name now takes an int not a long (I got the comment in inst_fmt.c
80
 * wrong).
110
 * wrong).
81
 * 
111
 *
82
 * Revision 1.1  93/06/24  14:58:30  14:58:30  ra (Robert Andrews)
112
 * Revision 1.1  93/06/24  14:58:30  14:58:30  ra (Robert Andrews)
83
 * Initial revision
113
 * Initial revision
84
 * 
114
 *
85
--------------------------------------------------------------------------
115
--------------------------------------------------------------------------
86
*/
116
*/
87
 
117
 
88
 
118
 
89
#ifndef INST_FMT_INCLUDED
119
#ifndef INST_FMT_INCLUDED
Line 94... Line 124...
94
 
124
 
95
/* special registers */
125
/* special registers */
96
#define YREG	65
126
#define YREG	65
97
#define FSR	33
127
#define FSR	33
98
 
128
 
99
extern char *ext_name PROTO_S ( ( int ) ) ;
129
extern char *ext_name(int);
100
 
130
 
101
extern void ld_ro_ins PROTO_S ( ( ins_p, baseoff, int ) ) ;
131
extern void ld_ro_ins(ins_p, baseoff, int);
102
extern void ld_rr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
132
extern void ld_rr_ins(ins_p, int, int, int);
103
extern void ld_ins PROTO_S ( ( ins_p, baseoff, int ) ) ;
133
extern void ld_ins(ins_p, baseoff, int);
104
 
134
 
105
extern void st_ro_ins PROTO_S ( ( ins_p, int, baseoff ) ) ;
135
extern void st_ro_ins(ins_p, int, baseoff);
106
extern void st_rr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
136
extern void st_rr_ins(ins_p, int, int, int);
107
extern void st_ins PROTO_S ( ( ins_p, int, baseoff ) ) ;
137
extern void st_ins(ins_p, int, baseoff);
108
 
138
 
109
extern void rrr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
139
extern void rrr_ins(ins_p, int, int, int);
110
extern void rir_ins PROTO_S ( ( ins_p, int, long, int ) ) ;
140
extern void rir_ins(ins_p, int, long, int);
111
extern void rr_ins PROTO_S ( ( ins_p, int, int ) ) ;
141
extern void rr_ins(ins_p, int, int);
112
extern void ir_ins PROTO_S ( ( ins_p, long, int ) ) ;
142
extern void ir_ins(ins_p, long, int);
113
extern void lr_ins PROTO_S ( ( int, int ) ) ;
143
extern void lr_ins(int, int);
114
 
144
 
115
extern void set_ins PROTO_S ( ( baseoff, int ) ) ;
145
extern void set_ins(baseoff, int);
116
extern void z_ins PROTO_S ( ( ins_p ) ) ;
146
extern void z_ins(ins_p);
117
extern void unimp_ins PROTO_S ( ( long ) ) ;
147
extern void unimp_ins(long);
118
 
148
 
119
extern void condrr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
149
extern void condrr_ins(ins_p, int, int, int);
120
extern void condri_ins PROTO_S ( ( ins_p, int, long, int ) ) ;
150
extern void condri_ins(ins_p, int, long, int);
121
extern void fmaxminrr_ins PROTO_S ((ins_p,int,int,int,int));
151
extern void fmaxminrr_ins(ins_p,int,int,int,int);
122
extern void maxminrr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
152
extern void maxminrr_ins(ins_p, int, int, int);
123
extern void maxminri_ins PROTO_S ( ( ins_p, int, long, int ) ) ;
153
extern void maxminri_ins(ins_p, int, long, int);
124
extern void uncond_ins PROTO_S ( ( ins_p, int ) ) ;
154
extern void uncond_ins(ins_p, int);
125
extern void br_ins PROTO_S ( ( ins_p, int ) ) ;
155
extern void br_ins(ins_p, int);
126
extern void br_abs PROTO_S ((int));
156
extern void br_abs(int);
127
extern void lngjmp PROTO_S ((int,int,int));
157
extern void lngjmp(int,int,int);
128
 
158
 
129
extern void extj_ins PROTO_S ( ( ins_p, baseoff, int ) ) ;
159
extern void extj_ins(ins_p, baseoff, int);
130
extern void extj_ins_without_delay PROTO_S ( ( ins_p, baseoff, int ) ) ;
160
extern void extj_ins_without_delay(ins_p, baseoff, int);
131
 
161
 
132
extern void extj_special_ins PROTO_S ( ( ins_p, CONST char * CONST, int ) ) ;
162
extern void extj_special_ins(ins_p, CONST char * CONST, int);
133
extern void extj_special_ins_no_delay PROTO_S ( ( ins_p, CONST char * CONST, int ) ) ;
163
extern void extj_special_ins_no_delay(ins_p, CONST char * CONST, int);
134
extern void extj_reg_ins PROTO_S ( ( ins_p, int, int ) ) ;
164
extern void extj_reg_ins(ins_p, int, int);
135
extern void extj_reg_ins_no_delay PROTO_S ( ( ins_p, int, int ) ) ;
165
extern void extj_reg_ins_no_delay(ins_p, int, int);
136
 
166
 
137
extern void ret_ins PROTO_S ( ( ins_p ) ) ;
167
extern void ret_ins(ins_p);
138
extern void ret_restore_ins PROTO_S ( ( void ) ) ;
168
extern void ret_restore_ins(void);
139
extern void stret_restore_ins PROTO_S ( ( void ) ) ;
169
extern void stret_restore_ins(void);
140
 
170
 
141
extern void ldf_ro_ins PROTO_S ( ( ins_p, baseoff, int ) ) ;
171
extern void ldf_ro_ins(ins_p, baseoff, int);
142
extern void ldf_rr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
172
extern void ldf_rr_ins(ins_p, int, int, int);
143
extern void ldf_ins PROTO_S ( ( ins_p, baseoff, int ) ) ;
173
extern void ldf_ins(ins_p, baseoff, int);
144
extern void stf_ro_ins PROTO_S ( ( ins_p, int, baseoff ) ) ;
174
extern void stf_ro_ins(ins_p, int, baseoff);
145
extern void stf_rr_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
175
extern void stf_rr_ins(ins_p, int, int, int);
146
extern void stf_ins PROTO_S ( ( ins_p, int, baseoff ) ) ;
176
extern void stf_ins(ins_p, int, baseoff);
147
 
177
 
148
extern void rrf_ins PROTO_S ( ( ins_p, int, int ) ) ;
178
extern void rrf_ins(ins_p, int, int);
149
extern void rrrf_ins PROTO_S ( ( ins_p, int, int, int ) ) ;
179
extern void rrrf_ins(ins_p, int, int, int);
150
 
180
 
151
extern void rrf_cmp_ins PROTO_S ( ( ins_p, int, int ) ) ;
181
extern void rrf_cmp_ins(ins_p, int, int);
152
extern void fbr_ins PROTO_S ( ( ins_p, int ) ) ;
182
extern void fbr_ins(ins_p, int);
153
 
183
 
154
extern void out_asm_reg PROTO_S ( ( int, int ) ) ;
184
extern void out_asm_reg(int, int);
155
extern void out_asm_boff PROTO_S ( ( baseoff, long ) ) ;
185
extern void out_asm_boff(baseoff, long);
156
 
186
 
157
#endif /* INST_FMT_INCLUDED */
187
#endif /* INST_FMT_INCLUDED */