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
/*
2
    		 Crown Copyright (c) 1996
3
 
4
    This TenDRA(r) Computer Program is subject to Copyright
5
    owned by the United Kingdom Secretary of State for Defence
6
    acting through the Defence Evaluation and Research Agency
7
    (DERA).  It is made available to Recipients with a
8
    royalty-free licence for its use, reproduction, transfer
9
    to other parties and amendment for any purpose not excluding
10
    product development provided that any such use et cetera
11
    shall be deemed to be acceptance of the following conditions:-
12
 
13
        (1) Its Recipients shall ensure that this Notice is
14
        reproduced upon any copies or amended versions of it;
15
 
16
        (2) Any amended version of it shall be clearly marked to
17
        show both the nature of and the organisation responsible
18
        for the relevant amendment or amendments;
19
 
20
        (3) Its onward transfer from a recipient to another
21
        party shall be deemed to be that party's acceptance of
22
        these conditions;
23
 
24
        (4) DERA gives no warranty or assurance as to its
25
        quality or suitability for any purpose and DERA accepts
26
        no liability whatsoever in relation to any use to which
27
        it may be put.
28
*/
29
/*
30
			    VERSION INFORMATION
31
			    ===================
32
 
33
--------------------------------------------------------------------------
34
$Header: /u/g/release/CVSROOT/Source/src/installers/680x0/common/operations.h,v 1.1.1.1 1998/01/17 15:55:49 release Exp $
35
--------------------------------------------------------------------------
36
$Log: operations.h,v $
37
 * Revision 1.1.1.1  1998/01/17  15:55:49  release
38
 * First version to be checked into rolling release.
39
 *
40
Revision 1.1.1.1  1997/10/13 12:42:56  ma
41
First version.
42
 
43
Revision 1.3  1997/10/13 08:49:41  ma
44
Made all pl_tests for general proc & exception handling pass.
45
 
46
Revision 1.2  1997/09/25 06:45:21  ma
47
All general_proc tests passed
48
 
49
Revision 1.1.1.1  1997/03/14 07:50:15  ma
50
Imported from DRA
51
 
52
 * Revision 1.1.1.1  1996/09/20  10:56:57  john
53
 *
54
 * Revision 1.2  1996/07/05  14:23:29  john
55
 * Changes for spec 3.1
56
 *
57
 * Revision 1.1.1.1  1996/03/26  15:45:15  john
58
 *
59
 * Revision 1.4  94/11/16  10:37:07  10:37:07  ra (Robert Andrews)
60
 * Added support for integer absolute.
61
 * 
62
 * Revision 1.3  94/06/29  14:23:06  14:23:06  ra (Robert Andrews)
63
 * Declare maximum and minimum operations.
64
 * 
65
 * Revision 1.2  93/03/03  14:47:52  14:47:52  ra (Robert Andrews)
66
 * Added error handling routines.
67
 * 
68
 * Revision 1.1  93/02/22  17:16:15  17:16:15  ra (Robert Andrews)
69
 * Initial revision
70
 * 
71
--------------------------------------------------------------------------
72
*/
73
 
74
 
75
#ifndef OPERATIONS_INCLUDED
76
#define OPERATIONS_INCLUDED
77
#include "ecodes.h"
78
extern bool have_cond ;
79
extern bool D1_is_special ;
80
extern int crt_rmode ;
81
 
82
extern void absop PROTO_S ( ( shape, where, where ) ) ;
83
extern void add PROTO_S ( ( shape, where, where, where ) ) ;
84
extern void and PROTO_S ( ( shape, where, where, where ) ) ;
85
extern void bitf_to_int PROTO_S ( ( exp, shape, where, ash ) ) ;
86
extern void bit_test PROTO_S ( ( shape, where, where ) ) ;
87
extern void callins PROTO_S ( ( long, exp ) ) ;
88
extern void jmpins PROTO_S ( ( exp ) ) ;
89
extern void trap_ins PROTO_S ( ( int ) ) ;
90
extern void change_var_sh PROTO_S ( ( shape, shape, where, where ) ) ;
91
extern void change_var PROTO_S ( ( shape, where, where ) ) ;
92
extern bool cmp PROTO_S ( ( shape, where, where, long ) ) ;
93
extern void div1 PROTO_S ( ( shape, where, where, where ) ) ;
94
extern void div2 PROTO_S ( ( shape, where, where, where ) ) ;
95
extern void exactdiv PROTO_S ( ( shape, where, where, where ) ) ;
96
extern void int_to_bitf PROTO_S ( ( exp, exp, ash ) ) ;
97
extern void maxop PROTO_S ( ( shape, where, where, where ) ) ;
98
extern void minop PROTO_S ( ( shape, where, where, where ) ) ;
99
extern void mova PROTO_S ( ( where, where ) ) ;
100
extern void move PROTO_S ( ( shape, where, where ) ) ;
101
extern void move_const PROTO_S ( ( shape, long, long, where ) ) ;
102
extern void move_bytes PROTO_S ( ( long, where, where, int ) ) ;
103
extern void mult PROTO_S ( ( shape, where, where, where ) ) ;
104
extern void negate PROTO_S ( ( shape, where, where ) ) ;
105
extern void not PROTO_S ( ( shape, where, where ) ) ;
106
extern void or PROTO_S ( ( shape, where, where, where ) ) ;
107
extern void rem1 PROTO_S ( ( shape, where, where, where ) ) ;
108
extern void rem2 PROTO_S ( ( shape, where, where, where ) ) ;
109
extern void rshift PROTO_S ( ( shape, where, where, where ) ) ;
110
extern void shift PROTO_S ( ( shape, where, where, where ) ) ;
111
extern void sub PROTO_S ( ( shape, where, where, where ) ) ;
112
extern void xor PROTO_S ( ( shape, where, where, where ) ) ;
113
 
114
extern void abs_float PROTO_S ( ( shape, where, where ) ) ;
115
extern void change_flvar PROTO_S ( ( shape, where, where ) ) ;
116
extern void fl_binop PROTO_S ( ( int, shape, where, where, where ) ) ;
117
extern void int_to_float PROTO_S ( ( shape, where, where ) ) ;
118
extern void negate_float PROTO_S ( ( shape, where, where ) ) ;
119
extern void round_float PROTO_S ( ( shape, where, where ) ) ;
120
 
121
extern long range_max PROTO_S ( (shape) );
122
extern long range_min PROTO_S ( (shape) );
123
 
124
extern int overflow_jump ;
125
extern int err_continue;
126
 
127
#define CONTINUE_ERR 2
128
 
129
#define set_continue(e) if(errhandle(e)==CONTINUE_ERR) err_continue = 1
130
#define clear_continue(e) (err_continue = 0)
131
#define have_continue() (err_continue != 0)
132
#endif