sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
regdef.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 1996-2007 MIPS Technologies, Inc.
3 * Copyright (C) 2009 CodeSourcery, LLC.
4 *
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 *
11 * * Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer.
13 * * Redistributions in binary form must reproduce the above
14 * copyright
15 * notice, this list of conditions and the following disclaimer
16 * in the documentation and/or other materials provided with
17 * the distribution.
18 * * Neither the name of MIPS Technologies Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 */
34
35/*
36 * regdef.h : MIPS Rx000 symbolic register names for assembler
37 */
38
43#ifndef _MIPS_REGDEF_H_
44#define _MIPS_REGDEF_H_
45
46#define zero $0
47
48#define AT $1
49
50#define v0 $2
51#define v1 $3
52
53#define a0 $4
54#define a1 $5
55#define a2 $6
56#define a3 $7
57
58#if _MIPS_SIM==_ABIN32 || _MIPS_SIM==_ABI64 || _MIPS_SIM==_ABIEABI
59#define a4 $8
60#define a5 $9
61#define a6 $10
62#define a7 $11
63#define t0 $12
64#define t1 $13
65#define t2 $14
66#define t3 $15
67#define ta0 $8 /* alias for $a4 */
68#define ta1 $9 /* alias for $a5 */
69#define ta2 $10 /* alias for $a6 */
70#define ta3 $11 /* alias for $a7 */
71#else
72#define t0 $8
73#define t1 $9
74#define t2 $10
75#define t3 $11
76#define t4 $12
77#define t5 $13
78#define t6 $14
79#define t7 $15
80#define ta0 $12 /* alias for $t4 */
81#define ta1 $13 /* alias for $t5 */
82#define ta2 $14 /* alias for $t6 */
83#define ta3 $15 /* alias for $t7 */
84#endif
85
86#define s0 $16
87#define s1 $17
88#define s2 $18
89#define s3 $19
90#define s4 $20
91#define s5 $21
92#define s6 $22
93#define s7 $23
94#define s8 $30 /* == fp */
95
96#define t8 $24
97#define t9 $25
98#define k0 $26
99#define k1 $27
100
101#define gp $28
102
103#define sp $29
104#define fp $30
105#define ra $31
106
107#endif