pspsdk-1.0+beta2
as_reg_compat.h
Go to the documentation of this file.
1 /*
2  * PSP Software Development Kit - http://www.pspdev.org
3  * -----------------------------------------------------------------------
4  * Licensed under the BSD license, see LICENSE in PSPSDK root for details.
5  *
6  * as_reg_compat.h - Register name mapping.
7  *
8  * Copyright (c) 2005 Marcus R. Brown <mrbrown@ocgnet.org>
9  * Copyright (c) 2005 James Forshaw <tyranid@gmail.com>
10  * Copyright (c) 2005 John Kelley <ps2dev@kelley.ca>
11  *
12  * $Id: as_reg_compat.h 540 2005-07-08 19:35:10Z warren $
13  */
14 #ifndef __AS_REG_COMPAT_H__
15 #define __AS_REG_COMPAT_H__
16 
17 /* register defines for the GNU assembler */
18 
19 #define zero 0
20 #define at 1
21 #define v0 2
22 #define v1 3
23 #define a0 4
24 #define a1 5
25 #define a2 6
26 #define a3 7
27 #define t0 8
28 #define t1 9
29 #define t2 10
30 #define t3 11
31 #define t4 12
32 #define t5 13
33 #define t6 14
34 #define t7 15
35 #define s0 16
36 #define s1 17
37 #define s2 18
38 #define s3 19
39 #define s4 20
40 #define s5 21
41 #define s6 22
42 #define s7 23
43 #define t8 24
44 #define t9 25
45 #define k0 26
46 #define k1 27
47 #define gp 28
48 #define sp 29
49 #define fp 30
50 #define ra 31
51 
52 #endif