-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathia32.h
316 lines (270 loc) · 13.6 KB
/
ia32.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
/***************************************************************************
*
* Copyright (c) 1997, 1998 Timpanogas Research Group, Inc. All Rights
* Reserved.
*
* AUTHOR : Jeff V. Merkey
* FILE : IA32.H
* DESCRIP : Multi-Processing IA32 specific Debugger code MANOS v1.0
* DATE : December 28, 1997
*
*
***************************************************************************/
#include "types.h"
extern LONG SLDexitToDOSACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG SLDprocessProceedACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG SLDprocessTraceACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG SLDprocessGoACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG exitToDOSACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG processProceedACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG processTraceACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG processGoACC(SCREEN *screen, LONG key, void *stackFrame,
ACCELERATOR *accel);
extern LONG executeCommandHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG exitToDOS(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG processProceed(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG processTrace(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG processGo(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG processorCommandHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG breakProcessor(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakNMIProcessors(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayEAXHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeEAXRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayEBXHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeEBXRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayECXHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeECXRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayEDXHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeEDXRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayESIHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeESIRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayEDIHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeEDIRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayEBPHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeEBPRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayESPHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeESPRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayEIPHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeEIPRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayCSHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeCSRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayDSHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeDSRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayESHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeESRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayFSHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeFSRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayGSHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeGSRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displaySSHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeSSRegister(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayRFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeRFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayTFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeTFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayZFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeZFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displaySFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeSFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayPFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangePFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayCFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeCFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayOFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeOFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayIFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeIFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayIDHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeIDFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayDFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeDFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayNTHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeNTFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayVMHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeVMFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayVIFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeVIFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayVIPHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeVIPFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayAFHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeAFFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayACHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG ChangeACFlag(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayMTRRHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG DisplayMTRRRegisters(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayGDTHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG displayGDT(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayIDTHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG displayIDT(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG evaluateExpressionHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG evaluateExpression(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG displayDOSTableHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG displayDOSTable(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG portCommandHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG inputWordPort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG inputDoublePort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG inputBytePort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG inputPort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG outputWordPort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG outputDoublePort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG outputBytePort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG outputPort(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointCommandHelp(SCREEN *screen, BYTE *commandLine, DEBUGGER_PARSER *parser);
extern LONG breakpointClearAll(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointClear(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointMask(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointWord1(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointWord2(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointWord4(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointWord(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointRead1(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointRead2(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointRead4(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointRead(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointIO1(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointIO2(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointIO4(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointIO(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointExecute(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);
extern LONG breakpointShowTemp(SCREEN *screen, BYTE *cmd,
StackFrame *stackFrame, LONG Exception,
DEBUGGER_PARSER *parser);