2 |
7u83 |
1 |
/*
|
|
|
2 |
Crown Copyright (c) 1997
|
|
|
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 |
|
|
|
31 |
/* inst_fmtdecs.h,v 1.4 1995/09/04 16:23:56 john Exp */
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
/*
|
|
|
35 |
instfmtdecs.h
|
|
|
36 |
declarations of functions used to output assembler instructions.
|
|
|
37 |
*/
|
|
|
38 |
#ifndef INSTFMTDECS_H
|
|
|
39 |
#define INSTFMTDECS_H
|
|
|
40 |
#include "addresstypes.h"
|
|
|
41 |
#include "cross.h"
|
|
|
42 |
#include "instypes.h"
|
|
|
43 |
#include "ins_data.h"
|
|
|
44 |
#include "exptypes.h"
|
|
|
45 |
#include "procrectypes.h"
|
|
|
46 |
#if DO_SCHEDULE
|
|
|
47 |
#include "scheduler.h"
|
|
|
48 |
#endif
|
|
|
49 |
#define IMMEDIATE_MAX 255
|
|
|
50 |
#define IMMEDIATE_MIN -128
|
|
|
51 |
|
|
|
52 |
extern char *outass PROTO_S ((char *));
|
|
|
53 |
extern void load_store PROTO_S ((instruction,int,baseoff));
|
|
|
54 |
extern void load_store_immediate PROTO_S ((instruction,int,INT64));
|
|
|
55 |
extern void load_store_label PROTO_S ((instruction,int,int));
|
|
|
56 |
extern void integer_branch PROTO_S ((instruction,int,int));
|
|
|
57 |
extern void integer_jump PROTO_S ((instruction,int,int,int));
|
|
|
58 |
extern void integer_jump_external PROTO_S ((instruction,int,baseoff));
|
|
|
59 |
extern void integer_jump_fn PROTO_S ((instruction,int,exp,space));
|
|
|
60 |
extern void operate_fmt PROTO_S ((instruction,int,int,int));
|
|
|
61 |
extern void operate_fmt_immediate PROTO_S ((instruction,int,int,int));
|
|
|
62 |
extern void operate_fmt_big_immediate PROTO_S ((instruction,int,INT64,int));
|
|
|
63 |
extern void float_load_store PROTO_S ((instruction,int,baseoff));
|
|
|
64 |
extern void float_branch PROTO_S ((instruction,int,int));
|
|
|
65 |
extern void float_op PROTO_S ((instruction,int,int,int));
|
|
|
66 |
extern void float_convert PROTO_S ((instruction,int,int));
|
|
|
67 |
extern void float_load_store_immediate PROTO_S ((instruction,int,char*));
|
|
|
68 |
extern void call_pal PROTO_S ((instruction, instruction));
|
|
|
69 |
extern void fetch PROTO_S ((instruction,baseoff));
|
|
|
70 |
extern void no_parameter_instructions PROTO_S ((instruction));
|
|
|
71 |
extern void single_parameter_instructions PROTO_S ((instruction,int));
|
|
|
72 |
extern void memory_fmt PROTO_S ((instruction,int,int));
|
|
|
73 |
extern void operate_fmt PROTO_S ((instruction,int,int,int));
|
|
|
74 |
#if DO_SCHEDULE
|
|
|
75 |
extern void out_code PROTO_S ((Instruction_data));
|
|
|
76 |
extern void add_instruction PROTO_S ((Instruction));
|
|
|
77 |
extern Instruction_data get_new_ins_data PROTO_S ((void));
|
|
|
78 |
extern void output_instruction PROTO_S ((Class,char*,char*));
|
|
|
79 |
extern void output_data PROTO_S ((char*,char*));
|
|
|
80 |
|
|
|
81 |
typedef struct String_dat
|
|
|
82 |
{
|
|
|
83 |
char data;
|
|
|
84 |
struct String_dat *next;
|
|
|
85 |
} StringData;
|
|
|
86 |
|
|
|
87 |
typedef struct
|
|
|
88 |
{
|
|
|
89 |
StringData *head,*tail;
|
|
|
90 |
} String;
|
|
|
91 |
|
|
|
92 |
#else
|
|
|
93 |
#define output_instruction(class,string,op) op
|
|
|
94 |
#define output_data(string,op) op
|
|
|
95 |
#endif
|
|
|
96 |
|
|
|
97 |
#endif /*INSTFMTDECS_H*/
|
|
|
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
|