2 * COPYRIGHT: GPL - See COPYING in the top level directory
3 * PROJECT: ReactOS Virtual DOS Machine
5 * PURPOSE: Header file to define commonly used stuff
6 * PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
12 /* INCLUDES *******************************************************************/
18 #define WIN32_NO_STATUS
28 /* DEFINES ********************************************************************/
30 #define TO_LINEAR(seg, off) (((seg) << 4) + (off))
31 #define MAX_SEGMENT 0xFFFF
32 #define MAX_OFFSET 0xFFFF
33 #define MAX_ADDRESS 0x1000000 // 16 MB of RAM
35 #define FAR_POINTER(x) \
36 (PVOID)((ULONG_PTR)BaseAddress + TO_LINEAR(HIWORD(x), LOWORD(x)))
38 #define SEG_OFF_TO_PTR(seg, off) \
39 (PVOID)((ULONG_PTR)BaseAddress + TO_LINEAR((seg), (off)))
41 #define STEPS_PER_CYCLE 256
43 /* FUNCTIONS ******************************************************************/
45 extern LPVOID BaseAddress
;
46 extern BOOLEAN VdmRunning
;
48 VOID
DisplayMessage(LPCWSTR Format
, ...);