/[pcsx2_0.9.7]/trunk/common/include/x86emitter/legacy_types.h
ViewVC logotype

Contents of /trunk/common/include/x86emitter/legacy_types.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 3028 byte(s)
exported r3113 from ./upstream/trunk
1 /* PCSX2 - PS2 Emulator for PCs
2 * Copyright (C) 2002-2010 PCSX2 Dev Team
3 *
4 * PCSX2 is free software: you can redistribute it and/or modify it under the terms
5 * of the GNU Lesser General Public License as published by the Free Software Found-
6 * ation, either version 3 of the License, or (at your option) any later version.
7 *
8 * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10 * PURPOSE. See the GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along with PCSX2.
13 * If not, see <http://www.gnu.org/licenses/>.
14 */
15
16 #pragma once
17
18 #define SIB 4 // maps to ESP
19 #define SIBDISP 5 // maps to EBP
20 #define DISP32 5 // maps to EBP
21
22 // general types
23 typedef int x86IntRegType;
24
25 #define EAX 0
26 #define EBX 3
27 #define ECX 1
28 #define EDX 2
29 #define ESI 6
30 #define EDI 7
31 #define EBP 5
32 #define ESP 4
33
34 #define MM0 0
35 #define MM1 1
36 #define MM2 2
37 #define MM3 3
38 #define MM4 4
39 #define MM5 5
40 #define MM6 6
41 #define MM7 7
42
43 typedef int x86MMXRegType;
44
45 #define XMM0 0
46 #define XMM1 1
47 #define XMM2 2
48 #define XMM3 3
49 #define XMM4 4
50 #define XMM5 5
51 #define XMM6 6
52 #define XMM7 7
53 #define XMM8 8
54 #define XMM9 9
55 #define XMM10 10
56 #define XMM11 11
57 #define XMM12 12
58 #define XMM13 13
59 #define XMM14 14
60 #define XMM15 15
61
62 typedef int x86SSERegType;
63 /* PCSX2 - PS2 Emulator for PCs
64 * Copyright (C) 2002-2010 PCSX2 Dev Team
65 *
66 * PCSX2 is free software: you can redistribute it and/or modify it under the terms
67 * of the GNU Lesser General Public License as published by the Free Software Found-
68 * ation, either version 3 of the License, or (at your option) any later version.
69 *
70 * PCSX2 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
71 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
72 * PURPOSE. See the GNU General Public License for more details.
73 *
74 * You should have received a copy of the GNU General Public License along with PCSX2.
75 * If not, see <http://www.gnu.org/licenses/>.
76 */
77
78 #pragma once
79
80 #define SIB 4 // maps to ESP
81 #define SIBDISP 5 // maps to EBP
82 #define DISP32 5 // maps to EBP
83
84 // general types
85 typedef int x86IntRegType;
86
87 #define EAX 0
88 #define EBX 3
89 #define ECX 1
90 #define EDX 2
91 #define ESI 6
92 #define EDI 7
93 #define EBP 5
94 #define ESP 4
95
96 #define X86ARG1 EAX
97 #define X86ARG2 ECX
98 #define X86ARG3 EDX
99 #define X86ARG4 EBX
100
101 #define MM0 0
102 #define MM1 1
103 #define MM2 2
104 #define MM3 3
105 #define MM4 4
106 #define MM5 5
107 #define MM6 6
108 #define MM7 7
109
110 typedef int x86MMXRegType;
111
112 #define XMM0 0
113 #define XMM1 1
114 #define XMM2 2
115 #define XMM3 3
116 #define XMM4 4
117 #define XMM5 5
118 #define XMM6 6
119 #define XMM7 7
120 #define XMM8 8
121 #define XMM9 9
122 #define XMM10 10
123 #define XMM11 11
124 #define XMM12 12
125 #define XMM13 13
126 #define XMM14 14
127 #define XMM15 15
128
129 typedef int x86SSERegType;

  ViewVC Help
Powered by ViewVC 1.1.22