ReactOS 0.4.16-dev-88-ga65b6ae
|
#include <fast486.h>
Go to the source code of this file.
Macros | |
#define | NULL32 ((ULONG)0) |
#define | MEM_ALIGN_DOWN(ptr, align) (PVOID)((ULONG_PTR)(ptr) & ~((align) - 1l)) |
#define | MEM_ALIGN_UP(ptr, align) MEM_ALIGN_DOWN((ULONG_PTR)(ptr) + (align) - 1l, (align)) |
#define | TO_LINEAR(seg, off) (((seg) << 4) + (off)) |
#define | MAX_SEGMENT 0xFFFF |
#define | MAX_OFFSET 0xFFFF |
#define | MAX_ADDRESS 0x1000000 |
#define | SEG_OFF_TO_PTR(seg, off) (PVOID)((ULONG_PTR)BaseAddress + TO_LINEAR((seg), (off))) |
#define | FAR_POINTER(x) SEG_OFF_TO_PTR(HIWORD(x), LOWORD(x)) |
#define | REAL_TO_PHYS(ptr) (PVOID)((ULONG_PTR)(ptr) + (ULONG_PTR)BaseAddress) |
#define | PHYS_TO_REAL(ptr) (PVOID)((ULONG_PTR)(ptr) - (ULONG_PTR)BaseAddress) |
#define | ARRAY_INDEX(ptr, array) ((ULONG)(((ULONG_PTR)(ptr) - (ULONG_PTR)(array)) / sizeof(*array))) |
Functions | |
C_ASSERT (0x100000<=MAX_ADDRESS) | |
FORCEINLINE USHORT | BINARY_TO_BCD (USHORT Value) |
FORCEINLINE USHORT | BCD_TO_BINARY (USHORT Value) |
VOID | DumpMemory (BOOLEAN TextFormat) |
VOID | MountFloppy (IN ULONG DiskNumber) |
VOID | EjectFloppy (IN ULONG DiskNumber) |
UCHAR FASTCALL | EmulatorIntAcknowledge (PFAST486_STATE State) |
VOID FASTCALL | EmulatorFpu (PFAST486_STATE State) |
VOID | EmulatorInterruptSignal (VOID) |
VOID | EmulatorException (BYTE ExceptionNumber, LPWORD Stack) |
VOID | EmulatorPause (VOID) |
VOID | EmulatorResume (VOID) |
VOID | EmulatorTerminate (VOID) |
BOOLEAN | EmulatorInitialize (HANDLE ConsoleInput, HANDLE ConsoleOutput) |
VOID | EmulatorCleanup (VOID) |
Variables | |
FAST486_STATE | EmulatorContext |
LPVOID | BaseAddress |
BOOLEAN | VdmRunning |
#define ARRAY_INDEX | ( | ptr, | |
array | |||
) | ((ULONG)(((ULONG_PTR)(ptr) - (ULONG_PTR)(array)) / sizeof(*array))) |
Definition at line 40 of file emulator.h.
Definition at line 35 of file emulator.h.
#define MAX_ADDRESS 0x1000000 |
Definition at line 29 of file emulator.h.
#define MAX_OFFSET 0xFFFF |
Definition at line 28 of file emulator.h.
#define MAX_SEGMENT 0xFFFF |
Definition at line 27 of file emulator.h.
Definition at line 23 of file emulator.h.
Definition at line 24 of file emulator.h.
Definition at line 21 of file emulator.h.
Definition at line 38 of file emulator.h.
Definition at line 37 of file emulator.h.
#define SEG_OFF_TO_PTR | ( | seg, | |
off | |||
) | (PVOID)((ULONG_PTR)BaseAddress + TO_LINEAR((seg), (off))) |
Definition at line 32 of file emulator.h.
#define TO_LINEAR | ( | seg, | |
off | |||
) | (((seg) << 4) + (off)) |
Definition at line 26 of file emulator.h.
anonymous enum |
Definition at line 85 of file emulator.h.
FORCEINLINE USHORT BCD_TO_BINARY | ( | USHORT | Value | ) |
Definition at line 65 of file emulator.h.
FORCEINLINE USHORT BINARY_TO_BCD | ( | USHORT | Value | ) |
C_ASSERT | ( | 0x100000<= | MAX_ADDRESS | ) |
Definition at line 369 of file emulator.c.
Referenced by MenuEventHandler().
Definition at line 467 of file emulator.c.
Referenced by MenuEventHandler().
Definition at line 639 of file emulator.c.
Referenced by EmulatorInitialize(), and VdmShutdown().
Definition at line 85 of file emulator.c.
Referenced by BiosException().
Definition at line 79 of file emulator.c.
Referenced by CpuInitialize().
Definition at line 510 of file emulator.c.
Referenced by wmain().
Definition at line 71 of file emulator.c.
Referenced by CpuInitialize().
Definition at line 120 of file emulator.c.
Referenced by PicInterruptRequest(), and PicWriteCommand().
Definition at line 487 of file emulator.c.
Referenced by CmdSetExitCode(), CmdStartProcess(), and DosStartProcess32().
Definition at line 495 of file emulator.c.
Referenced by CmdSetExitCode(), CmdStartProcess(), DosStart(), and DosStartProcess32().
Definition at line 503 of file emulator.c.
Referenced by AttachToConsoleInternal(), Bios32Initialize(), Bios32Post(), BiosRomBasic(), CpuSimulate(), DemLoadNTDOSKernel(), DosCmdInterpreterBop(), DosStart(), EmulatorException(), PS2WriteControl(), PS2WriteData(), ThirdPartyVDDBop(), VDDTerminateVDM(), VdmShutdown(), VgaAttachToConsole(), VgaConsoleCreateTextScreen(), VgaEnterNewMode(), and WinNtVdmBiosReset().
Definition at line 413 of file emulator.c.
Referenced by MenuEventHandler().
|
extern |
Definition at line 404 of file mmfuncs.h.
Referenced by $endif(), __RtlImageDirectoryEntryToData(), __RtlImageRvaToVa(), _IRQL_requires_max_(), AdvancedErrorChecks(), AVrfpIsVerifierProviderDll(), AVrfpLdrGetProcedureAddress(), BehaviorChecks(), BiosDiskService(), BiosMiscService(), BiosMouseEnable(), BlImgLoadImageWithProgress2(), CalcCheckSum(), CcPreparePinWrite(), CcpUnpinData(), CcRosEnsureVacbResident(), CheckAdjacentVADs(), CheckAlignment(), CheckSize(), CheckSomeDefaultAddresses(), CheckSumMappedFile(), ClasspGetMaxUsableBufferLengthFromOffset(), CmpInitializeMachineDependentConfiguration(), CpuExceptionFilter(), CreateProcessInternalW(), DbgkMapViewOfSection(), DbgkUnMapViewOfSection(), DECLARE_INTERFACE_(), DiskBios32Post(), DosBIOSInitialize(), DosClonePsp(), DosCreatePsp(), DosInt21h(), DosLoadExecutableInternal(), DosMouseCleanup(), DosMouseDisable(), DosMouseEnable(), DosMouseInitialize(), DosTerminateProcess(), ExLockUserBuffer(), ExpComputePartialHashForAddress(), FAT12CountAvailableClusters(), FAT12FindAndMarkAvailableCluster(), FAT12GetNextCluster(), FAT12WriteCluster(), FAT16CountAvailableClusters(), FAT16FindAndMarkAvailableCluster(), FAT16GetNextCluster(), FAT16WriteCluster(), FAT32CountAvailableClusters(), FAT32FindAndMarkAvailableCluster(), FAT32GetNextCluster(), FAT32WriteCluster(), FileSectionViewPermissionCheck(), find_entry(), FlushViewOfFile(), GetEbdaLocation(), GetProcessVersion(), HalpMapPhysicalMemory64Vista(), IMAGEHLP_RecalculateChecksum(), InitializeBiosInt32(), InitializeModeTable(), IntAgpCommitVirtual(), IntAgpFreeVirtual(), IntVideoPortImageDirectoryEntryToData(), IopLoadDriver(), is_data_file_module(), KdpSysReadControlSpace(), KdpSysWriteControlSpace(), Ke386SetGdtEntryBase(), KeSweepICache(), LdrAccessResource(), LdrAddRefDll(), LdrDisableThreadCalloutsForDll(), LdrFindResource_U(), LdrFindResourceDirectory_U(), LdrGetProcedureAddress(), LdrInitShimEngineDynamic(), LdrLoadDll(), LdrpAccessResource(), LdrpAllocateDataTableEntry(), LdrpCallInitRoutine(), LdrpFetchAddressOfSecurityCookie(), LdrpGetProcedureAddress(), LdrpLoadDll(), LdrRelocateImage(), LdrRelocateImageWithBias(), LdrUnloadDll(), LdrVerifyMappedImageMatchesChecksum(), LlbAllocateMemoryEntry(), LoadModule(), LoadOle32Export(), main(), MapFile(), MapFileAndCheckSumA(), MapFileAndCheckSumW(), MemCleanup(), MemInitialize(), MiAddHalIoMappings(), MiAllocateContiguousMemory(), MiBuildPfnDatabaseFromPages(), MiCacheImageSymbols(), MiCheckForContiguousMemory(), MiCheckVadsForLockOperation(), MiCreateArm3StaticMemoryArea(), MiCreatePebOrTeb(), MiFindContiguousMemory(), MiFreeContiguousMemory(), MiInsertVadEx(), MiLockVirtualMemory(), MiMapLockedPagesInUserSpace(), MiMapViewOfDataSection(), MiProtectVirtualMemory(), MiQueryMemoryBasicInformation(), MiQueryMemorySectionName(), MiRemoveMappedPtes(), MiRosCleanupMemoryArea(), MiRosProtectVirtualMemory(), MiRosUnmapViewOfSection(), MiUnlockVirtualMemory(), MiUnmapLockedPagesInUserSpace(), MiUnmapViewOfSection(), MmAllocateNonCachedMemory(), MmAlterRegion(), MmAlterViewAttributes(), MmCreateKernelStack(), MmCreateMemoryArea(), MmFindRegion(), MmFreeContiguousMemory(), MmFreeContiguousMemorySpecifyCache(), MmFreeNonCachedMemory(), MmMapIoSpace(), MmMapLockedPagesSpecifyCache(), MmMapViewOfArm3Section(), MmMapViewOfSection(), MmMapViewOfSegment(), MmPapAllocatePagesInRange(), MmPapAllocatePhysicalPagesInRange(), MmProtectSectionView(), MmUnloadSystemImage(), MmUnmapIoSpace(), MmUnmapLockedPages(), MmUnmapVideoDisplay(), MmUnmapViewOfSection(), MmUnmapViewOfSegment(), MmVerifyImageIsOkForMpUse(), NtFlushInstructionCache(), NtFlushVirtualMemory(), NtGetVersionResource(), NtGetWriteWatch(), NtLockVirtualMemory(), NtMapViewOfSection(), NtProtectVirtualMemory(), NtQueryVirtualMemory(), NtReadVirtualMemory(), NtResetWriteWatch(), NtUnlockVirtualMemory(), NtUnmapViewOfSection(), NtWriteVirtualMemory(), OpenAndMapFile(), PageFileBehaviorChecks(), PcMemGetBiosMemoryMap(), PeLdrpFetchAddressOfSecurityCookie(), PropertyLengthAsVariant(), ProtectLowV86Mem(), RamdiskCreateDiskDevice(), RamdiskGetPartitionInfo(), RamdiskReadWriteReal(), RamdiskSetPartitionInfo(), RamdiskUnmapPages(), ReserveMemory(), RtlAddFunctionTable(), RtlConvertPropertyToVariant(), RtlConvertVariantToProperty(), RtlDebugGetUserInfoHeap(), RtlDebugSetUserFlagsHeap(), RtlDebugSetUserValueHeap(), RtlDestroyHeap(), RtlFindMessage(), RtlGetExpWinVer(), RtlGetUserInfoHeap(), RtlImageDirectoryEntryToData(), RtlImageRvaToVa(), RtlInstallFunctionTableCallback(), RtlpDebugPageHeapValidate(), RtlpDestroyHeapSegment(), RtlpDphNormalHeapValidate(), RtlpInitEnvironment(), RtlpPageHeapGetUserInfo(), RtlpPageHeapSetUserFlags(), RtlpPageHeapSetUserValue(), RtlpPageHeapSize(), RtlSetUserFlagsHeap(), RtlSetUserValueHeap(), ScrResetScreen(), ScrSetFont(), SE_IsShimDll(), SeiCheckComPlusImage(), SeiCreateShimModuleInfo(), SeiFindHookModuleInfo(), SeiGetShimModuleInfo(), SeiInit(), SerialDetectUartType(), SetMemory(), SimpleErrorChecks(), START_TEST(), supports_pdb(), supports_rsym(), SystemProcessWorker(), Test_ImageSection2(), test_pack_MEMORY_BASIC_INFORMATION(), Test_PageFileSection(), Test_RawSize(), Test_SectionContents(), test_SymEnumSymbols(), test_SymFromAddr(), test_SymFromName(), test_SymRegCallback(), Test_Truncate(), TestMap(), UefiSetMemory(), UnMapFile(), UnprotectLowV86Mem(), VbeGetVideoMemoryBaseAddress(), VbeSetMode(), VdmpInitialize(), VidBiosDrawGlyph(), VidBiosPost(), VidBiosSetVideoMode(), VidBiosVideoService(), VideoPortLockBuffer(), VidInitialize(), VirtualLock(), VirtualUnlock(), and Write().
|
extern |
Definition at line 39 of file cpu.c.
Referenced by CpuExceptionFilter(), CpuExecute(), CpuInitialize(), CpuStep(), DmaRequest(), DosReadFile(), DosWriteFile(), EmulatorException(), EmulatorInterruptSignal(), EraseMouseCursor(), getAF(), getAH(), getAL(), getAX(), getBH(), getBL(), getBP(), getBX(), getCF(), getCH(), getCL(), getCS(), getCX(), getDF(), getDH(), getDI(), getDL(), getDS(), getDX(), getEAX(), getEBP(), getEBX(), getECX(), getEDI(), getEDX(), getEFLAGS(), getEIP(), getES(), getESI(), getESP(), getFS(), getGS(), getIF(), getIntelRegistersPointer(), getIP(), getMSW(), getOF(), getPF(), getSF(), getSI(), getSP(), getSS(), getZF(), PaintMouseCursor(), ReadDisk(), setAF(), setAH(), setAL(), setAX(), setBH(), setBL(), setBP(), setBX(), setCF(), setCH(), setCL(), setCS(), setCX(), setDF(), setDH(), setDI(), setDL(), setDS(), setDX(), setEAX(), setEBP(), setEBX(), setECX(), setEDI(), setEDX(), setEFLAGS(), setES(), setESI(), setESP(), setFS(), setGS(), setIF(), setMSW(), setOF(), setPF(), setSF(), setSI(), setSP(), setSS(), setZF(), VidBiosClearScreen(), VidBiosDrawGlyph(), VidBiosScrollWindow(), VidBiosVideoService(), WriteDisk(), and x86BiosCall().
|
extern |
Definition at line 49 of file emulator.c.
Referenced by ClockUpdate(), ConsoleEventThread(), CpuSimulate(), and EmulatorTerminate().