54 L"Bound Range Exceeded",
68 WORD CodeSegment, InstructionPointer;
71 ASSERT(ExceptionNumber < 8);
80 L"Opcode: %02X %02X %02X %02X %02X %02X %02X %02X %02X %02X",
139 DPRINT1(
"NTVDM: %s access violation at 0x%p outside the virtual memory space!\n",
140 (Writing ?
"Write" :
"Read"),
Address);
171 DisplayMessage(
L"Too many CPU levels of recursion (%d, expected maximum %d)",
190 DPRINT(
"VDM exception handler called\n");
INT __cdecl DisplayMessage(_In_opt_ HWND hWnd, _In_ UINT uType, _In_opt_ PCWSTR pszTitle, _In_opt_ PCWSTR pszFormatMessage,...)
VOID FASTCALL EmulatorBiosOperation(PFAST486_STATE State, UCHAR BopCode)
VOID RegisterBop(BYTE BopCode, EMULATOR_BOP_PROC BopHandler)
VOID EmulatorTerminate(VOID)
VOID EmulatorException(BYTE ExceptionNumber, LPWORD Stack)
UCHAR FASTCALL EmulatorIntAcknowledge(PFAST486_STATE State)
VOID FASTCALL EmulatorFpu(PFAST486_STATE State)
#define PHYS_TO_REAL(ptr)
#define SEG_OFF_TO_PTR(seg, off)
VOID NTAPI Fast486Rewind(PFAST486_STATE State)
VOID NTAPI Fast486Initialize(PFAST486_STATE State, FAST486_MEM_READ_PROC MemReadCallback, FAST486_MEM_WRITE_PROC MemWriteCallback, FAST486_IO_READ_PROC IoReadCallback, FAST486_IO_WRITE_PROC IoWriteCallback, FAST486_BOP_PROC BopCallback, FAST486_INT_ACK_PROC IntAckCallback, FAST486_FPU_PROC FpuCallback, PULONG Tlb)
VOID NTAPI Fast486ExecuteAt(PFAST486_STATE State, USHORT Segment, ULONG Offset)
_In_ PVOID _In_ ULONG Opcode
#define EXCEPTION_EXECUTE_HANDLER
#define EXCEPTION_CONTINUE_SEARCH
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
_In_ ULONG _In_ ULONG Offset
#define _SEH2_EXCEPT(...)
#define _SEH2_GetExceptionInformation()
VOID NTAPI Fast486StepInto(PFAST486_STATE State)
struct _EXCEPTION_RECORD * ExceptionRecord
ULONG_PTR ExceptionInformation[EXCEPTION_MAXIMUM_PARAMETERS]
LONG CpuExceptionFilter(IN PEXCEPTION_POINTERS ExceptionInfo)
BOOLEAN CpuInitialize(VOID)
VOID CpuExecute(WORD Segment, WORD Offset)
FAST486_STATE EmulatorContext
static VOID WINAPI CpuUnsimulateBop(LPWORD Stack)
static const INT MaxCpuCallLevel
VOID FASTCALL EmulatorReadIo(PFAST486_STATE State, USHORT Port, PVOID Buffer, ULONG DataCount, UCHAR DataSize)
VOID FASTCALL EmulatorWriteIo(PFAST486_STATE State, USHORT Port, PVOID Buffer, ULONG DataCount, UCHAR DataSize)
VOID FASTCALL EmulatorReadMemory(PFAST486_STATE State, ULONG Address, PVOID Buffer, ULONG Size)
VOID FASTCALL EmulatorWriteMemory(PFAST486_STATE State, ULONG Address, PVOID Buffer, ULONG Size)
VOID MemExceptionHandler(ULONG FaultAddress, BOOLEAN Writing)
_In_ WDFREQUEST _In_ PIO_STACK_LOCATION Stack
#define EXCEPTION_ACCESS_VIOLATION