8 #define VM8086_STACK_SEG 0x9F00
9 #define VM8086_STACK_OFS 0x0AFE
10 #define VM8086_PAGES_PER_INST 4
13 int VM8086_Install(char **Arguments);
14 tVM8086 *VM8086_Init(void);
15 void VM8086_Free(tVM8086 *State);
18 MODULE_DEFINE(0, 0x100, VM8086, VM8086_Install, NULL, NULL);
19 tSpinlock glVM8086_Process;
20 tPID gVM8086_WorkerPID;
21 tTID gVM8086_CallingThread;
22 tVM8086 volatile * volatile gpVM8086_State = (void*)-1; // Set to -1 to avoid race conditions
25 int VM8086_Install(char **Arguments)
30 tVM8086 *VM8086_Init(void)
35 void VM8086_Free(tVM8086 *State)
40 void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset)
45 void *VM8086_GetPointer(tVM8086 *State, Uint16 Segment, Uint16 Offset)
50 void VM8086_Int(tVM8086 *State, Uint8 Interrupt)