ReactOS  0.4.15-dev-341-g17c5fb8
regs.h
Go to the documentation of this file.
1 /*++
2 
3 Copyright (c) 1998-2001 Klaus P. Gerlicher
4 
5 Module Name:
6 
7  regs.h
8 
9 Abstract:
10 
11  HEADER for disasm.c
12 
13 Environment:
14 
15  LINUX 2.2.X
16  Kernel mode only
17 
18 Author:
19 
20  Klaus P. Gerlicher
21 
22 Revision History:
23 
24  15-Nov-2000: general cleanup of source files
25 
26 Copyright notice:
27 
28  This file may be distributed under the terms of the GNU Public License.
29 
30 --*/
31 
32 #define REGGS 0
33 #define REGFS 1
34 #define REGES 2
35 #define REGDS 3
36 #define REGEDI 4
37 #define REGESI 5
38 #define REGEBX 6
39 #define REGEDX 7
40 #define REGECX 8
41 #define REGEAX 9
42 #define REGEBP 10
43 #define REGEIP 11
44 #define REGCS 12
45 #define REGEFL 13
46 #define REGESP 14
47 #define REGSS 15
48 
49 #ifdef KERNEL
50 #define REGCR0 16
51 #define REGCR2 17
52 #define REGCR3 18
53 #define REGCR4 19
54 #endif
55 
56 #define REGDR0 20
57 #define REGDR1 21
58 #define REGDR2 22
59 #define REGDR3 23
60 #define REGDR6 24
61 #define REGDR7 25
62 
63 #ifdef KERNEL
64 #define REGGDTR 26
65 #define REGGDTL 27
66 #define REGIDTR 28
67 #define REGIDTL 29
68 #define REGTR 30
69 #define REGLDTR 31
70 #endif
71 
72 // Pseudo-registers:
73 #define PREGEA 40
74 #define PREGBASE PREGEA
75 #define PREGEXP 41
76 #define PREGRA 42
77 #define PREGP 43
78 #define PREGU0 44
79 #define PREGU1 45
80 #define PREGU2 46
81 #define PREGU3 47
82 #define PREGU4 48
83 #define PREGU5 49
84 #define PREGU6 50
85 #define PREGU7 51
86 #define PREGU8 52
87 #define PREGU9 53
88 
89 #define FLAGBASE 100
90 #define REGDI 100
91 #define REGSI 101
92 #define REGBX 102
93 #define REGDX 103
94 #define REGCX 104
95 #define REGAX 105
96 #define REGBP 106
97 #define REGIP 107
98 #define REGFL 108
99 #define REGSP 109
100 #define REGBL 110
101 #define REGDL 111
102 #define REGCL 112
103 #define REGAL 113
104 #define REGBH 114
105 #define REGDH 115
106 #define REGCH 116
107 #define REGAH 117
108 #define FLAGIOPL 118
109 #define FLAGOF 119
110 #define FLAGDF 120
111 #define FLAGIF 121
112 #define FLAGTF 122
113 #define FLAGSF 123
114 #define FLAGZF 124
115 #define FLAGAF 125
116 #define FLAGPF 126
117 #define FLAGCF 127
118 #define FLAGVIP 128
119 #define FLAGVIF 129
120 
121 
122 #define REGFIR REGEIP