Subversion Repositories tendra.SVN

Rev

Details | 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
/* 	$Id: reg_defs.h,v 1.1.1.1 1998/01/17 15:56:01 release Exp $	 */
32
 
33
/*
34
   reg_defs.h
35
 
36
   This file identifies the special registers and makes some 
37
   other useful definitions.
38
*/
39
 
40
/*
41
$Log: reg_defs.h,v $
42
 * Revision 1.1.1.1  1998/01/17  15:56:01  release
43
 * First version to be checked into rolling release.
44
 *
45
 * Revision 1.3  1995/10/27  16:22:12  john
46
 * Change to general procs
47
 *
48
 * Revision 1.2  1995/05/23  13:25:20  john
49
 * Added new register definition
50
 *
51
 * Revision 1.1.1.1  1995/03/23  10:39:18  john
52
 * Entered into CVS
53
 *
54
 * Revision 1.7  1995/03/23  10:12:38  john
55
 * Added definition of FLOAT_REG_0
56
 *
57
*/
58
 
59
#ifndef REG_DEFS_H
60
#define REG_DEFS_H
61
 
62
#define RESULT_REG 0
63
#define FP 15			/* frame pointer */
64
#define RA 26			/* return address */
65
#define PV 27			/* proc value */
66
#define AT 28			/* reserved by assembler */
67
#define GP 29			/* global pointer */
68
#define SP 30			/* stack pointer */
69
#define FIRST_INT_ARG     16
70
#define LAST_INT_ARG      21	/* 1st 6 integer arguments */
71
#define NUM_PARAM_REGS 6
72
#define FIRST_FLOAT_ARG	  16
73
#define LAST_FLOAT_ARG	  21
74
#define FIRST_S_REG	9
75
#define PARAM_REGS	0x3f0000	/* bitmask of parameter regs */
76
#define NO_REG 32		/* not a register */
77
 
78
#define REG_SIZE 64		/* size of register in bits */
79
#define FLOAT_REG_0	32	 
80
 
81
#define is_param_reg(X) ((X>=FIRST_INT_ARG) && (X<= LAST_INT_ARG))
82
#endif
83
 
84