Subversion Repositories tendra.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

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