* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/callback.h"
+#include "cpu/bop.h"
+
+#include "bios.h"
+#include "bios32/bios32.h"
+#include "rom.h"
+#include "umamgr.h"
+
+#include "io.h"
+#include "hardware/cmos.h"
+
#include <stdlib.h>
/* DEFINES ********************************************************************/
#ifndef _BIOS_H_
#define _BIOS_H_
+/* INCLUDES *******************************************************************/
+
+#include "kbdbios.h"
+#include "vidbios.h"
+
/* DEFINES ********************************************************************/
/* BOP Identifiers */
VOID
BiosCleanup(VOID);
-#endif /* _BIOS_H_ */
+#endif // _BIOS_H_
+
+/* EOF */
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
+/* BIOS Version number and Copyright */
+#include <reactos/buildno.h>
+#include <reactos/version.h>
+
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/cpu.h" // for EMULATOR_FLAG_CF
+#include "cpu/bop.h"
+#include "int32.h"
+#include <isvbop.h>
+
+#include <bios/bios.h>
+#include <bios/rom.h>
+#include "bios32.h"
+#include "bios32p.h"
+#include "dskbios32.h"
+#include "kbdbios32.h"
+#include "vidbios32.h"
+#include "moubios32.h"
+
+#include "memory.h"
+#include "io.h"
+#include "hardware/cmos.h"
+#include "hardware/pic.h"
+#include "hardware/pit.h"
+#include "hardware/ps2.h"
+
/* PRIVATE VARIABLES **********************************************************/
CALLBACK16 BiosContext;
/* PRIVATE FUNCTIONS **********************************************************/
-static VOID Bios32CharPrint(CHAR Character)
+static VOID BiosCharPrint(CHAR Character)
{
/* Save AX and BX */
USHORT AX = getAX();
static VOID WINAPI BiosRomBasic(LPWORD Stack)
{
- PrintMessageAnsi(Bios32CharPrint, "FATAL: INT18: BOOT FAILURE.");
+ PrintMessageAnsi(BiosCharPrint, "FATAL: INT18: BOOT FAILURE.");
/* ROM Basic is unsupported, display a message to the user */
DisplayMessage(L"NTVDM doesn't support ROM Basic. The VDM is closing.");
#ifndef _BIOS32_H_
#define _BIOS32_H_
+/* INCLUDES *******************************************************************/
+
+// #include <bios/bios.h>
+
/* DEFINES ********************************************************************/
enum
BOOLEAN Bios32Initialize(VOID);
VOID Bios32Cleanup(VOID);
-#endif /* _BIOS32_H_ */
+#endif // _BIOS32_H_
+
+/* EOF */
#ifndef _BIOS32P_H_
#define _BIOS32P_H_
+/* INCLUDES *******************************************************************/
+
+#include <bios/bios.h>
+
+/**/ #include "int32.h" /**/
+
/* DEFINES ********************************************************************/
#define BIOS_PIC_MASTER_INT 0x08
VOID EnableHwIRQ(UCHAR hwirq, EMULATOR_INT32_PROC func);
VOID PicIRQComplete(BYTE IntNum);
-#endif /* _BIOS32P_H_ */
+#endif // _BIOS32P_H_
+
+/* EOF */
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+// #include "../../memory.h"
+// #include "cpu/bop.h"
+#include "cpu/cpu.h" // for EMULATOR_FLAG_ZF
+#include "int32.h"
+
+#include "dskbios32.h"
+// #include <bios/dskbios.h>
+#include "bios32p.h"
+
+#include "hardware/disk.h"
+
+
/* DEFINES ********************************************************************/
// Disks which are currently supported by the BIOS Disk module.
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "kbdbios32.h"
+#include <bios/kbdbios.h>
+#include "bios32p.h"
+
+#include "int32.h"
+#include "cpu/cpu.h" // for EMULATOR_FLAG_ZF
+#include "io.h"
+#include "hardware/ps2.h"
+
/* PRIVATE VARIABLES **********************************************************/
static BYTE BiosKeyboardMap[256];
* NOTE: Based from VirtualBox OSE ROM BIOS, and SeaBIOS.
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/cpu.h" // for EMULATOR_FLAG_CF
+
+#include "moubios32.h"
+#include "bios32p.h"
+
+#include "io.h"
+#include "hardware/mouse.h"
+#include "hardware/ps2.h"
+
/* PRIVATE VARIABLES **********************************************************/
#define MOUSE_IRQ_INT 0x74
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/cpu.h"
+
+#include "vbe.h"
+
+#include "io.h"
+
/* PRIVATE VARIABLES **********************************************************/
static const VBE_MODE Modes[VBE_MODE_COUNT] = {
#ifndef _VBE_H_
#define _VBE_H_
+#include "hardware/video/svga.h"
+
/* DEFINITIONS ****************************************************************/
#define OEM_NAME "Cirrus Logic GD-5434 VGA"
VOID WINAPI VbeService(LPWORD Stack);
BOOLEAN VbeInitialize(VOID);
-#endif /* _VBE_H_ */
+#endif // _VBE_H_
* NOTE: All of the real code is in bios/vidbios.c
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/bop.h"
+#include "int32.h"
+
+#include "vidbios32.h"
+#include <bios/vidbios.h>
+#include "bios32p.h"
+
/* DEFINES ********************************************************************/
/* BOP Identifiers */
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/bop.h"
+#include "int32.h"
+
+#include "bios.h"
+// #include "kbdbios.h"
+
/* DEFINES ********************************************************************/
/* BOP Identifiers */
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "memory.h"
+#include "cpu/callback.h"
+#include "rom.h"
+
+#include "utils.h"
+
/* PRIVATE FUNCTIONS **********************************************************/
static BOOLEAN FASTCALL ShadowRomWrite(ULONG Address, PVOID Buffer, ULONG Size)
* indirectly by the DOS EMS Driver, and by VDD memory management functions.
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "memory.h"
+
+#include "umamgr.h"
+
/* PRIVATE VARIABLES **********************************************************/
typedef struct _UMA_DESCRIPTOR
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+/* BIOS Version number and Copyright */
+#include <reactos/buildno.h>
+#include <reactos/version.h>
+
+#include "emulator.h"
+#include "cpu/cpu.h"
+#include "cpu/bop.h"
+#include "memory.h"
+
+#include "bios.h"
+#include "bios32/bios32p.h"
+#include "rom.h"
+#include "bios32/vbe.h"
+// #include "vidbios.h"
+#include "bios32/vidbios32.h"
+
+#include "io.h"
+#include "hardware/video/svga.h"
+
/* MACROS *********************************************************************/
//
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "clock.h"
+
+#include "cpu/cpu.h"
+#include "hardware/cmos.h"
+#include "hardware/ps2.h"
+#include "hardware/pit.h"
+#include "hardware/video/svga.h"
+#include "hardware/mouse.h"
+
/* DEFINES ********************************************************************/
/*
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "bop.h"
+
/* PRIVATE VARIABLES **********************************************************/
/*
| with the CPU registers is 100% prone to bugs!!
\******************************************************************************/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "callback.h"
+
+#include "cpu.h"
+#include "bop.h"
+#include <isvbop.h>
+
/* PRIVATE VARIABLES **********************************************************/
static BYTE Yield[] =
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu.h"
+
+#include "memory.h"
+#include "callback.h"
+#include "bop.h"
+#include <isvbop.h>
+
+#include "clock.h"
+#include "bios/rom.h"
+#include "hardware/cmos.h"
+#include "hardware/keyboard.h"
+#include "hardware/mouse.h"
+#include "hardware/pic.h"
+#include "hardware/ps2.h"
+#include "hardware/sound/speaker.h"
+#include "hardware/pit.h"
+#include "hardware/video/svga.h"
+
+#include "io.h"
+
/* PRIVATE VARIABLES **********************************************************/
FAST486_STATE EmulatorContext;
#ifndef _CPU_H_
#define _CPU_H_
+/* INCLUDES *******************************************************************/
+
+#include <fast486.h>
+
/* DEFINES ********************************************************************/
/* FLAGS */
BOOLEAN CpuInitialize(VOID);
VOID CpuCleanup(VOID);
-#endif /* _CPU_H_ */
+#endif // _CPU_H_
+
+/* EOF */
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu.h"
#include "x86context.h"
/* PRIVATE VARIABLES **********************************************************/
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include <isvbop.h>
+
+#include "utils.h"
+
+#include "dem.h"
+#include "dos/dos32krnl/device.h"
+#include "dos/dos32krnl/memory.h"
+#include "dos/dos32krnl/process.h"
+#include "cpu/bop.h"
+#include "cpu/cpu.h"
+
+#include "bios/bios.h"
+#include "mouse32.h"
+
+#include "vddsup.h"
+
/*
* EXPERIMENTAL!
* Activate this line if you want to have COMMAND.COM completely external.
#ifndef _DEM_H_
#define _DEM_H_
+/* INCLUDES *******************************************************************/
+
+#include "dos32krnl/dos.h"
+
/* DEFINES ********************************************************************/
/* BOP Identifiers */
OUT PUCHAR DriveNumber
);
-#endif /* _DEM_H_ */
+#endif // _DEM_H_
+
+/* EOF */
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "int32.h"
+
+#include "../dem.h"
+#include "dos.h"
+#include "dosfiles.h"
+#include "handle.h"
+#include "memory.h"
+#include "bios/bios.h"
+
// This is needed because on UNICODE this symbol is redirected to
// GetEnvironmentStringsW whereas on ANSI it corresponds to the real
// "ANSI" function (and GetEnvironmentStringsA is aliased to it).
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+
+#include "bios/bios.h"
+
/* PRIVATE VARIABLES **********************************************************/
PDOS_DEVICE_NODE Con = NULL;
* For other languages, please use COUNTRY.SYS
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+
+#include "country.h"
+#include "memory.h"
+
/* PRIVATE VARIABLES **********************************************************/
/* CaseMap routine: should call INT 65h, AL=20h */
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/bop.h"
+#include "device.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "memory.h"
+
/* PRIVATE VARIABLES **********************************************************/
static const BYTE StrategyRoutine[] = {
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/cpu.h"
+#include "int32.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "country.h"
+#include "device.h"
+#include "handle.h"
+#include "dosfiles.h"
+#include "memory.h"
+#include "process.h"
+#include "himem.h"
+
+#include "bios/bios.h"
+
+#include "io.h"
+#include "hardware/ps2.h"
+
+#include "emsdrv.h"
+
/* PRIVATE VARIABLES **********************************************************/
CALLBACK16 DosContext;
#ifndef _DOS_H_
#define _DOS_H_
+/* INCLUDES *******************************************************************/
+
+#include "device.h"
+
+/**/ #include "int32.h" /**/
+
/* DEFINES ********************************************************************/
//
*/
BOOLEAN DosKRNLInitialize(VOID);
-#endif /* _DOS_H_ */
+#endif // _DOS_H_
+
+/* EOF */
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "../../memory.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "dosfiles.h"
+#include "handle.h"
+#include "process.h"
+
+#include "bios/bios.h"
+
/* PRIVATE FUNCTIONS **********************************************************/
static VOID StoreNameInSft(LPCSTR FilePath, PDOS_FILE_DESCRIPTOR Descriptor)
* LIM EMS v4.0: http://www.phatcode.net/res/218/files/limems40.txt
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "../../memory.h"
+#include "bios/umamgr.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "device.h"
+
+#include "emsdrv.h"
+
#define EMS_DEVICE_NAME "EMMXXXX0"
#define EMS_SEGMENT_SIZE ((EMS_PHYSICAL_PAGES * EMS_PAGE_SIZE) >> 4)
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "dosfiles.h"
+#include "handle.h"
+#include "memory.h"
+#include "process.h"
+
/* PRIVATE FUNCTIONS **********************************************************/
/* Taken from base/shell/cmd/console.c */
* of the internal Upper Memory Area Manager, in umamgr.c
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/bop.h"
+#include "../../memory.h"
+#include "bios/umamgr.h"
+
+#include "device.h"
+#include "himem.h"
+
#define XMS_DEVICE_NAME "XMSXXXX0"
/* BOP Identifiers */
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+
+#include "bios/umamgr.h" // HACK until we correctly call XMS services for UMBs.
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "memory.h"
+#include "process.h"
+#include "himem.h"
+
// FIXME: Should be dynamically initialized!
#define FIRST_MCB_SEGMENT (SYSTEM_ENV_BLOCK + 0x200) // old value: 0x1000
#define USER_MEMORY_SIZE (0x9FFE - FIRST_MCB_SEGMENT)
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cpu/cpu.h"
+
+#include "dos.h"
+#include "dos/dem.h"
+#include "dosfiles.h"
+#include "handle.h"
+#include "process.h"
+#include "memory.h"
+
+#include "bios/bios.h"
+
+#include "io.h"
+#include "hardware/ps2.h"
+
+#include "vddsup.h"
+
/* PRIVATE FUNCTIONS **********************************************************/
static VOID DosInitPsp(IN WORD Segment,
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+/* Driver Version number and Copyright */
+#include <reactos/buildno.h>
+#include <reactos/version.h>
+
+#include "emulator.h"
+
+#include "cpu/cpu.h"
+#include "int32.h"
+#include "hardware/mouse.h"
+#include "hardware/ps2.h"
+#include "hardware/pic.h"
+#include "hardware/video/svga.h"
+
+#include "mouse32.h"
+#include "bios/bios.h"
+#include "bios/bios32/bios32p.h"
+
+#include "memory.h"
+#include "io.h"
+#include "dos32krnl/memory.h"
+
/* PRIVATE VARIABLES **********************************************************/
static const CHAR MouseCopyright[] =
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "memory.h"
+
+#include "cpu/callback.h"
+#include "cpu/cpu.h"
+#include "cpu/bop.h"
+#include <isvbop.h>
+
+#include "int32.h"
+
+#include "clock.h"
+#include "bios/rom.h"
+#include "hardware/cmos.h"
+#include "hardware/disk.h"
+#include "hardware/dma.h"
+#include "hardware/keyboard.h"
+#include "hardware/mouse.h"
+#include "hardware/pic.h"
+#include "hardware/pit.h"
+#include "hardware/ppi.h"
+#include "hardware/ps2.h"
+#include "hardware/sound/speaker.h"
+#include "hardware/video/svga.h"
+
+#include "vddsup.h"
+#include "io.h"
+
/* PRIVATE VARIABLES **********************************************************/
LPVOID BaseAddress = NULL;
#ifndef _EMULATOR_H_
#define _EMULATOR_H_
+/* INCLUDES *******************************************************************/
+
+#include <fast486.h>
+
/* DEFINES ********************************************************************/
/* Basic Memory Management */
BOOLEAN EmulatorInitialize(HANDLE ConsoleInput, HANDLE ConsoleOutput);
VOID EmulatorCleanup(VOID);
-#endif /* _EMULATOR_H_ */
+#endif // _EMULATOR_H_
+
+/* EOF */
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "cmos.h"
+
+#include "io.h"
+#include "pic.h"
+#include "clock.h"
+
/* PRIVATE VARIABLES **********************************************************/
static HANDLE hCmosRam = INVALID_HANDLE_VALUE;
* in little endian) *MUST* be fixed!
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "disk.h"
+
+// #include "io.h"
+#include "memory.h"
+
+#include "utils.h"
+
+
/**************** HARD DRIVES -- VHD FIXED DISK FORMAT SUPPORT ****************/
// http://citrixblogger.org/2008/12/01/dynamic-vhd-walkthrough/
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "dma.h"
+
+#include "io.h"
+#include "memory.h"
+
/* PRIVATE VARIABLES **********************************************************/
/*
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "keyboard.h"
+#include "ps2.h"
+
/* PRIVATE VARIABLES **********************************************************/
static BOOLEAN Reporting = FALSE;
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "mouse.h"
+#include "ps2.h"
+
+#include "clock.h"
+#include "video/svga.h"
+
/* PRIVATE VARIABLES **********************************************************/
static const BYTE ScrollMagic[3] = { 200, 100, 80 };
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "pic.h"
+
+#include "io.h"
+
/* PRIVATE VARIABLES **********************************************************/
typedef struct _PIC
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "pit.h"
+
+#include "io.h"
+#include "pic.h"
+#include "clock.h"
+
/* PRIVATE VARIABLES **********************************************************/
static PIT_CHANNEL PitChannels[PIT_CHANNELS];
* - This controller is here only for having ports 61h and 62h working.
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "ppi.h"
+
+#include "hardware/pit.h"
+#include "hardware/sound/speaker.h"
+
+#include "io.h"
+
/* PRIVATE VARIABLES **********************************************************/
/*static*/ BYTE Port61hState = 0x00; // Used in emulator.c
* http://www.computer-engineering.org/ps2keyboard/
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "ps2.h"
+
+#include "memory.h"
+#include "io.h"
+#include "pic.h"
+#include "clock.h"
+
/* PRIVATE VARIABLES **********************************************************/
#define BUFFER_SIZE 32
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "speaker.h"
+#include "hardware/pit.h"
+
/* Extra PSDK/NDK Headers */
#include <ndk/iofuncs.h>
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "svga.h"
+#include <bios/vidbios.h>
+
+#include "memory.h"
+#include "io.h"
+#include "clock.h"
+
/* PRIVATE VARIABLES **********************************************************/
static CONST DWORD MemoryBase[] = { 0xA0000, 0xA0000, 0xB0000, 0xB8000 };
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "int32.h"
+
+#include "cpu/bop.h"
+#include <isvbop.h>
+
/* PRIVATE VARIABLES **********************************************************/
/*
#ifndef _INT32_H_
#define _INT32_H_
+/* INCLUDES *******************************************************************/
+
+#include "cpu/callback.h"
+
/* DEFINES ********************************************************************/
/* 32-bit Interrupt Identifiers */
VOID InitializeInt32(VOID);
-#endif /* _INT32_H_ */
+#endif // _INT32_H_
+
+/* EOF */
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "io.h"
+
/* PRIVATE VARIABLES **********************************************************/
typedef struct _EMULATOR_IO_HANDLERS
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "memory.h"
+
/* PRIVATE VARIABLES **********************************************************/
typedef struct _MEM_HOOK
* PROGRAMMERS: Aleksandar Andrejevic <theflash AT sdf DOT lonestar DOT org>
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+
+#include "bios/bios.h"
+#include "cpu/cpu.h"
+
+#include "dos/dem.h"
+
#include "resource.h"
/* VARIABLES ******************************************************************/
/* PSEH for SEH Support */
#include <pseh/pseh2.h>
-#include <reactos/buildno.h>
-#include <reactos/version.h>
-
-#include <fast486.h>
-#include <isvbop.h>
-
-#include "bios/bios32/bios32.h"
-#include "bios/bios32/dskbios32.h"
-#include "bios/bios32/kbdbios32.h"
-#include "bios/bios32/moubios32.h"
-#include "bios/bios32/vidbios32.h"
-#include "bios/vidbios.h"
-#include "bios/bios.h"
-#include "bios/kbdbios.h"
-#include "bios/umamgr.h"
-#include "cpu/callback.h"
-#include "bios/rom.h"
-#include "clock.h"
-#include "cpu/bop.h"
-#include "cpu/cpu.h"
-#include "dos/dem.h"
-#include "dos/mouse32.h"
-#include "dos/dos32krnl/country.h"
-#include "dos/dos32krnl/device.h"
-#include "dos/dos32krnl/dos.h"
-#include "dos/dos32krnl/dosfiles.h"
-#include "dos/dos32krnl/emsdrv.h"
-#include "dos/dos32krnl/handle.h"
-#include "dos/dos32krnl/himem.h"
-#include "dos/dos32krnl/process.h"
-#include "emulator.h"
-#include "hardware/cmos.h"
-#include "hardware/disk.h"
-#include "hardware/dma.h"
-#include "hardware/keyboard.h"
-#include "hardware/mouse.h"
-#include "hardware/pic.h"
-#include "hardware/pit.h"
-#include "hardware/ppi.h"
-#include "hardware/ps2.h"
-#include "hardware/sound/speaker.h"
-#include "hardware/video/svga.h"
-#include "bios/bios32/vbe.h"
-#include "int32.h"
-#include "bios/bios32/bios32p.h"
-#include "io.h"
-#include "utils.h"
-#include "vddsup.h"
-
-#include "memory.h"
-#include "dos/dos32krnl/memory.h"
-
/*
* Activate this line if you want to run NTVDM in standalone mode with:
* ntvdm.exe <program>
VOID MenuEventHandler(PMENU_EVENT_RECORD MenuEvent);
VOID FocusEventHandler(PFOCUS_EVENT_RECORD FocusEvent);
-#endif /* _NTVDM_H_ */
+#endif // _NTVDM_H_
+
+/* EOF */
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+/* PRIVATE FUNCTIONS **********************************************************/
+
/* PUBLIC FUNCTIONS ***********************************************************/
VOID
* PROGRAMMERS: Hermes Belusca-Maito (hermes.belusca@sfr.fr)
*/
+/* INCLUDES *******************************************************************/
+
#include "ntvdm.h"
#define NDEBUG
#include <debug.h>
+#include "emulator.h"
+#include "vddsup.h"
+
+#include "cpu/bop.h"
+#include <isvbop.h>
+
typedef VOID (WINAPI *VDD_PROC)(VOID);
typedef struct _VDD_MODULE