9 #define VM8086_STACK_SEG 0x9F00
10 #define VM8086_STACK_OFS 0x0AFE
11 #define VM8086_PAGES_PER_INST 4
14 int VM8086_Install(char **Arguments);
15 //tVM8086 *VM8086_Init(void);
16 //void VM8086_Free(tVM8086 *State);
19 MODULE_DEFINE(0, 0x100, VM8086, VM8086_Install, NULL, NULL);
20 tMutex glVM8086_Process;
21 //tRME_State *gpVM8086_State;
22 tPID gVM8086_WorkerPID;
23 tTID gVM8086_CallingThread;
24 tVM8086 volatile * volatile gpVM8086_State = (void*)-1; // Set to -1 to avoid race conditions
27 int VM8086_Install(char **Arguments)
29 //gpVM8086_State = RME_CreateState();
33 tVM8086 *VM8086_Init(void)
38 void VM8086_Free(tVM8086 *State)
43 void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset)
48 void *VM8086_GetPointer(tVM8086 *State, Uint16 Segment, Uint16 Offset)
53 void VM8086_Int(tVM8086 *State, Uint8 Interrupt)