Subversion Repositories tendra.SVN

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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
    Copyright (c) 1993 Open Software Foundation, Inc.
33
 
34
 
35
    All Rights Reserved
36
 
37
 
38
    Permission to use, copy, modify, and distribute this software
39
    and its documentation for any purpose and without fee is hereby
40
    granted, provided that the above copyright notice appears in all
41
    copies and that both the copyright notice and this permission
42
    notice appear in supporting documentation.
43
 
44
 
45
    OSF DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING
46
    ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
47
    PARTICULAR PURPOSE.
48
 
49
 
50
    IN NO EVENT SHALL OSF BE LIABLE FOR ANY SPECIAL, INDIRECT, OR
51
    CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
52
    LOSS OF USE, DATA OR PROFITS, WHETHER IN ACTION OF CONTRACT,
53
    NEGLIGENCE, OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
54
    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
55
*/
56
 
57
/*
58
    		 Crown Copyright (c) 1997
7 7u83 59
 
2 7u83 60
    This TenDRA(r) Computer Program is subject to Copyright
61
    owned by the United Kingdom Secretary of State for Defence
62
    acting through the Defence Evaluation and Research Agency
63
    (DERA).  It is made available to Recipients with a
64
    royalty-free licence for its use, reproduction, transfer
65
    to other parties and amendment for any purpose not excluding
66
    product development provided that any such use et cetera
67
    shall be deemed to be acceptance of the following conditions:-
7 7u83 68
 
2 7u83 69
        (1) Its Recipients shall ensure that this Notice is
70
        reproduced upon any copies or amended versions of it;
7 7u83 71
 
2 7u83 72
        (2) Any amended version of it shall be clearly marked to
73
        show both the nature of and the organisation responsible
74
        for the relevant amendment or amendments;
7 7u83 75
 
2 7u83 76
        (3) Its onward transfer from a recipient to another
77
        party shall be deemed to be that party's acceptance of
78
        these conditions;
7 7u83 79
 
2 7u83 80
        (4) DERA gives no warranty or assurance as to its
81
        quality or suitability for any purpose and DERA accepts
82
        no liability whatsoever in relation to any use to which
83
        it may be put.
84
*/
85
 
86
 
87
 
88
/**********************************************************************
89
$Author: release $
90
$Date: 1998/02/04 15:48:51 $
91
$Revision: 1.2 $
92
$Log: inst_fmt.h,v $
93
 * Revision 1.2  1998/02/04  15:48:51  release
94
 * Added OSF copyright message.
95
 *
96
 * Revision 1.1.1.1  1998/01/17  15:55:56  release
97
 * First version to be checked into rolling release.
98
 *
99
 * Revision 1.2  1996/10/04  16:01:28  pwe
100
 * add banners and mod for PWE ownership
101
 *
102
**********************************************************************/
103
 
104
 
105
#ifndef INST_FMTDECS_H
106
#define INST_FMTDECS_H
107
 
108
#include "addresstypes.h"	/* for baseoff */
109
#include "instruct.h"	/* for Instruction_P */
110
 
111
 
7 7u83 112
extern char *ext_name(long);
2 7u83 113
 
114
 
7 7u83 115
extern void ld_ro_ins(Instruction_P,baseoff,int);
116
extern void ld_rr_ins(Instruction_P,int,int,int);
117
extern void ld_ins(Instruction_P,baseoff,int);
2 7u83 118
 
7 7u83 119
extern void st_ro_ins(Instruction_P,int,baseoff);
120
extern void st_rr_ins(Instruction_P,int,int,int);
121
extern void st_ins(Instruction_P,int,baseoff);
2 7u83 122
 
7 7u83 123
extern void rrr_ins(Instruction_P,int,int,int);
124
extern void rir_ins(Instruction_P,int,long,int);
125
extern void rr_ins(Instruction_P,int,int);
2 7u83 126
 
7 7u83 127
extern void mov_rr_ins(int,int);
2 7u83 128
 
7 7u83 129
extern void ld_const_ins(long,int);
2 7u83 130
 
7 7u83 131
extern void mf_ins(Instruction_P,int);
132
extern void mt_ins(Instruction_P,int);
2 7u83 133
 
7 7u83 134
extern void set_ins(baseoff,int);
135
extern void z_ins(Instruction_P);
136
extern void unimp_ins(long);
2 7u83 137
 
7 7u83 138
extern void cmp_rr_ins(Instruction_P,int,int,int);
139
extern void cmp_ri_ins(Instruction_P,int,long,int);
2 7u83 140
 
7 7u83 141
extern void bc_ins(Instruction_P,int,int ,int);
142
extern void long_bc_ins(Instruction_P,int,int ,int);
143
extern void uncond_ins(Instruction_P,int);
2 7u83 144
 
7 7u83 145
extern void extj_ins(Instruction_P,baseoff);
146
extern void extj_special_ins(Instruction_P,char *);
2 7u83 147
 
7 7u83 148
extern void ldf_ro_ins(Instruction_P,baseoff,int);
149
extern void ldf_rr_ins(Instruction_P,int,int,int);
150
extern void ldf_ins(Instruction_P,baseoff,int);
151
extern void stf_ro_ins(Instruction_P,int,baseoff);
152
extern void stf_rr_ins(Instruction_P,int,int,int);
153
extern void stf_ins(Instruction_P,int,baseoff);
2 7u83 154
 
7 7u83 155
extern void rrf_ins(Instruction_P,int,int);
156
extern void rrrf_ins(Instruction_P,int,int,int);
157
extern void rrrrf_ins(Instruction_P,int,int,int,int);
158
extern void rrf_cmp_ins(Instruction_P,int,int,int);
159
extern void fbr_ins(Instruction_P,int);
160
extern void rlinm_ins(Instruction_P,int,int,unsigned int,int);
161
extern void mfspr_ins(int,int);
162
extern void mtfsfi_ins(int,int);
163
extern void mtfsb1_ins(int);
164
extern void mtfsb0_ins(int);
165
extern void mcrfs_ins(int,int);
166
extern char *get_instruction(Instruction_P);
167
extern void lsi_ins(int,int,int);
168
extern void stsi_ins(int,int,int);
169
extern void comment(char *);
170
#define NIL(char *)0
2 7u83 171
/* for mtfsfi_ins */
172
 
173
#define BITS_0_to_3     0
174
#define BITS_4_to_7     1
175
#define BITS_8_to_11    2
176
#define BITS_12_to_15   3
177
#define BITS_16_to_19   4
178
#define BITS_20_to_23   5
179
#define BITS_24_to_27   6
180
#define BITS_28_to_31   7
181
 
182
/* for bc_ins */
183
#define LIKELY_TO_JUMP   0
184
#define UNLIKELY_TO_JUMP 1
185
 
186
#endif /* inst_fmtdecs.h */
187
 
188
 
189
 
190
 
191