2 |
7u83 |
1 |
/*
|
7 |
7u83 |
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 |
/*
|
2 |
7u83 |
32 |
Crown Copyright (c) 1997
|
7 |
7u83 |
33 |
|
2 |
7u83 |
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:-
|
7 |
7u83 |
42 |
|
2 |
7u83 |
43 |
(1) Its Recipients shall ensure that this Notice is
|
|
|
44 |
reproduced upon any copies or amended versions of it;
|
7 |
7u83 |
45 |
|
2 |
7u83 |
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;
|
7 |
7u83 |
49 |
|
2 |
7u83 |
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;
|
7 |
7u83 |
53 |
|
2 |
7u83 |
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 |
|
|
|
62 |
|
|
|
63 |
/*
|
|
|
64 |
VERSION INFORMATION
|
|
|
65 |
===================
|
|
|
66 |
|
|
|
67 |
--------------------------------------------------------------------------
|
|
|
68 |
$Header: /u/g/release/CVSROOT/Source/src/installers/sparc/common/inst_fmt.h,v 1.1.1.1 1998/01/17 15:55:54 release Exp $
|
|
|
69 |
--------------------------------------------------------------------------
|
|
|
70 |
$Log: inst_fmt.h,v $
|
|
|
71 |
* Revision 1.1.1.1 1998/01/17 15:55:54 release
|
|
|
72 |
* First version to be checked into rolling release.
|
|
|
73 |
*
|
|
|
74 |
* Revision 1.6 1997/10/10 18:32:29 pwe
|
|
|
75 |
* prep ANDF-DE revision
|
|
|
76 |
*
|
|
|
77 |
* Revision 1.5 1995/09/13 11:00:55 john
|
|
|
78 |
* New prototype
|
|
|
79 |
*
|
|
|
80 |
* Revision 1.4 1995/07/18 09:38:50 john
|
|
|
81 |
* New functions for return_to_label
|
|
|
82 |
*
|
|
|
83 |
* Revision 1.3 1995/07/14 16:31:16 john
|
|
|
84 |
* Changed prototype name
|
|
|
85 |
*
|
|
|
86 |
* Revision 1.2 1995/05/26 12:58:48 john
|
|
|
87 |
* New prototype
|
|
|
88 |
*
|
|
|
89 |
* Revision 1.1.1.1 1995/03/13 10:18:39 john
|
|
|
90 |
* Entered into CVS
|
|
|
91 |
*
|
|
|
92 |
* Revision 1.5 1994/12/21 12:10:54 djch
|
|
|
93 |
* added maxmin functions
|
|
|
94 |
*
|
|
|
95 |
* Revision 1.4 1994/12/01 13:17:17 djch
|
|
|
96 |
* Added 3 new fns
|
|
|
97 |
*
|
|
|
98 |
* Revision 1.3 1994/07/04 09:24:54 djch
|
|
|
99 |
* Jun94 tape version
|
|
|
100 |
*
|
|
|
101 |
* Revision 1.2 1994/05/13 12:32:10 djch
|
|
|
102 |
* Incorporates improvements from expt version
|
|
|
103 |
* changed extj_special_ins to match
|
|
|
104 |
*
|
|
|
105 |
* Revision 1.1 1994/05/03 14:50:19 djch
|
|
|
106 |
* Initial revision
|
|
|
107 |
*
|
|
|
108 |
* Revision 1.2 93/08/27 11:28:10 11:28:10 ra (Robert Andrews)
|
|
|
109 |
* ext_name now takes an int not a long (I got the comment in inst_fmt.c
|
|
|
110 |
* wrong).
|
7 |
7u83 |
111 |
*
|
2 |
7u83 |
112 |
* Revision 1.1 93/06/24 14:58:30 14:58:30 ra (Robert Andrews)
|
|
|
113 |
* Initial revision
|
7 |
7u83 |
114 |
*
|
2 |
7u83 |
115 |
--------------------------------------------------------------------------
|
|
|
116 |
*/
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
#ifndef INST_FMT_INCLUDED
|
|
|
120 |
#define INST_FMT_INCLUDED
|
|
|
121 |
|
|
|
122 |
#include "addrtypes.h"
|
|
|
123 |
#include "sparcins.h"
|
|
|
124 |
|
|
|
125 |
/* special registers */
|
|
|
126 |
#define YREG 65
|
|
|
127 |
#define FSR 33
|
|
|
128 |
|
7 |
7u83 |
129 |
extern char *ext_name(int);
|
2 |
7u83 |
130 |
|
7 |
7u83 |
131 |
extern void ld_ro_ins(ins_p, baseoff, int);
|
|
|
132 |
extern void ld_rr_ins(ins_p, int, int, int);
|
|
|
133 |
extern void ld_ins(ins_p, baseoff, int);
|
2 |
7u83 |
134 |
|
7 |
7u83 |
135 |
extern void st_ro_ins(ins_p, int, baseoff);
|
|
|
136 |
extern void st_rr_ins(ins_p, int, int, int);
|
|
|
137 |
extern void st_ins(ins_p, int, baseoff);
|
2 |
7u83 |
138 |
|
7 |
7u83 |
139 |
extern void rrr_ins(ins_p, int, int, int);
|
|
|
140 |
extern void rir_ins(ins_p, int, long, int);
|
|
|
141 |
extern void rr_ins(ins_p, int, int);
|
|
|
142 |
extern void ir_ins(ins_p, long, int);
|
|
|
143 |
extern void lr_ins(int, int);
|
2 |
7u83 |
144 |
|
7 |
7u83 |
145 |
extern void set_ins(baseoff, int);
|
|
|
146 |
extern void z_ins(ins_p);
|
|
|
147 |
extern void unimp_ins(long);
|
2 |
7u83 |
148 |
|
7 |
7u83 |
149 |
extern void condrr_ins(ins_p, int, int, int);
|
|
|
150 |
extern void condri_ins(ins_p, int, long, int);
|
|
|
151 |
extern void fmaxminrr_ins(ins_p,int,int,int,int);
|
|
|
152 |
extern void maxminrr_ins(ins_p, int, int, int);
|
|
|
153 |
extern void maxminri_ins(ins_p, int, long, int);
|
|
|
154 |
extern void uncond_ins(ins_p, int);
|
|
|
155 |
extern void br_ins(ins_p, int);
|
|
|
156 |
extern void br_abs(int);
|
|
|
157 |
extern void lngjmp(int,int,int);
|
2 |
7u83 |
158 |
|
7 |
7u83 |
159 |
extern void extj_ins(ins_p, baseoff, int);
|
|
|
160 |
extern void extj_ins_without_delay(ins_p, baseoff, int);
|
2 |
7u83 |
161 |
|
7 |
7u83 |
162 |
extern void extj_special_ins(ins_p, CONST char * CONST, int);
|
|
|
163 |
extern void extj_special_ins_no_delay(ins_p, CONST char * CONST, int);
|
|
|
164 |
extern void extj_reg_ins(ins_p, int, int);
|
|
|
165 |
extern void extj_reg_ins_no_delay(ins_p, int, int);
|
2 |
7u83 |
166 |
|
7 |
7u83 |
167 |
extern void ret_ins(ins_p);
|
|
|
168 |
extern void ret_restore_ins(void);
|
|
|
169 |
extern void stret_restore_ins(void);
|
2 |
7u83 |
170 |
|
7 |
7u83 |
171 |
extern void ldf_ro_ins(ins_p, baseoff, int);
|
|
|
172 |
extern void ldf_rr_ins(ins_p, int, int, int);
|
|
|
173 |
extern void ldf_ins(ins_p, baseoff, int);
|
|
|
174 |
extern void stf_ro_ins(ins_p, int, baseoff);
|
|
|
175 |
extern void stf_rr_ins(ins_p, int, int, int);
|
|
|
176 |
extern void stf_ins(ins_p, int, baseoff);
|
2 |
7u83 |
177 |
|
7 |
7u83 |
178 |
extern void rrf_ins(ins_p, int, int);
|
|
|
179 |
extern void rrrf_ins(ins_p, int, int, int);
|
2 |
7u83 |
180 |
|
7 |
7u83 |
181 |
extern void rrf_cmp_ins(ins_p, int, int);
|
|
|
182 |
extern void fbr_ins(ins_p, int);
|
2 |
7u83 |
183 |
|
7 |
7u83 |
184 |
extern void out_asm_reg(int, int);
|
|
|
185 |
extern void out_asm_boff(baseoff, long);
|
2 |
7u83 |
186 |
|
|
|
187 |
#endif /* INST_FMT_INCLUDED */
|