[SOFT386]
[reactos.git] / lib / soft386 / opcodes.h
1 /*
2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: 386/486 CPU Emulation Library
4 * FILE: opcodes.h
5 * PURPOSE: Opcode handlers. (header file)
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
7 */
8
9 #ifndef _OPCODES_H_
10 #define _OPCODES_H_
11
12 /* DEFINES ********************************************************************/
13
14 #ifndef FASTCALL
15 #define FASTCALL __fastcall
16 #endif
17
18 #define SOFT386_NUM_OPCODE_HANDLERS 256
19
20 typedef BOOLEAN (FASTCALL *SOFT386_OPCODE_HANDLER_PROC)(PSOFT386_STATE, UCHAR);
21
22 extern
23 SOFT386_OPCODE_HANDLER_PROC
24 Soft386OpcodeHandlers[SOFT386_NUM_OPCODE_HANDLERS];
25
26 BOOLEAN
27 FASTCALL
28 Soft386OpcodePrefix
29 (
30 PSOFT386_STATE State,
31 UCHAR Opcode
32 );
33
34 BOOLEAN
35 FASTCALL
36 Soft386OpcodeIncrement
37 (
38 PSOFT386_STATE State,
39 UCHAR Opcode
40 );
41
42 BOOLEAN
43 FASTCALL
44 Soft386OpcodeDecrement
45 (
46 PSOFT386_STATE State,
47 UCHAR Opcode
48 );
49
50 #endif // _OPCODES_H_