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) 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
/*
32
  instypes.h
33
  Provides the definition of the instruction type, and some associted
34
  macros.
35
*/
36
 
37
/*
38
$Log: instypes.h,v $
39
 * Revision 1.1.1.1  1998/01/17  15:56:00  release
40
 * First version to be checked into rolling release.
41
 *
42
 * Revision 1.2  1995/05/16  10:52:49  john
43
 * Cosmetic change
44
 *
45
 * Revision 1.1.1.1  1995/03/23  10:39:36  john
46
 * Entered into CVS
47
 *
48
 * Revision 1.2  1995/03/23  10:08:00  john
49
 * Changed instruction type to include class information.
50
 *
51
*/
52
 
53
#ifndef INST_TYPES
54
#define INST_TYPES
55
#if DO_SCHEDULE
56
#include "scheduler.h"
57
#endif
58
 
59
 
60
typedef struct{
61
  char *ins;
62
  int val;
63
#if DO_SCHEDULE
64
  Class class;
65
#endif
66
} instruction;
67
 
68
 
69
/*#define ins_equal(insa,insb) (!strcmp(insa.ins,insb.ins))*/
70
#define ins_equal(insa,insb) (insa.val == insb.val)
71
#define ins_symbolic_name(inst) (inst.ins)
72
#define ins_binid(ins) (ins.val)
73
 
74
#if DO_SCHEDULE
75
#define ins_class(ins)	(ins.class)
76
#endif
77
 
78
#endif /* INST_TYPES */
79