1;;;;;;;;;;;;;;;;;;;;; 2;; NTVDM Registers ;; 3;;;;;;;;;;;;;;;;;;;;; 4 5@ stdcall getAF() 6@ stdcall getAH() 7@ stdcall getAL() 8@ stdcall getAX() 9@ stdcall getBH() 10@ stdcall getBL() 11@ stdcall getBP() 12@ stdcall getBX() 13@ stdcall getCF() 14@ stdcall getCH() 15@ stdcall getCL() 16@ stdcall getCS() 17@ stdcall getCX() 18@ stdcall getDF() 19@ stdcall getDH() 20@ stdcall getDI() 21@ stdcall getDL() 22@ stdcall getDS() 23@ stdcall getDX() 24@ stdcall getEAX() 25@ stdcall getEBP() 26@ stdcall getEBX() 27@ stdcall getECX() 28@ stdcall getEDI() 29@ stdcall getEDX() 30@ stdcall getEFLAGS() 31@ stdcall getEIP() 32@ stdcall getES() 33@ stdcall getESI() 34@ stdcall getESP() 35@ stdcall getFS() 36@ stdcall getGS() 37@ stdcall getIF() 38@ stdcall getIntelRegistersPointer() 39@ stdcall getIP() 40@ stdcall getMSW() 41@ stdcall getOF() 42@ stdcall getPF() 43@ stdcall getSF() 44@ stdcall getSI() 45@ stdcall getSP() 46@ stdcall getSS() 47@ stdcall getZF() 48 49@ stdcall setAF(long) 50@ stdcall setAH(long) 51@ stdcall setAL(long) 52@ stdcall setAX(long) 53@ stdcall setBH(long) 54@ stdcall setBL(long) 55@ stdcall setBP(long) 56@ stdcall setBX(long) 57@ stdcall setCF(long) 58@ stdcall setCH(long) 59@ stdcall setCL(long) 60@ stdcall setCS(long) 61@ stdcall setCX(long) 62@ stdcall setDF(long) 63@ stdcall setDH(long) 64@ stdcall setDI(long) 65@ stdcall setDL(long) 66@ stdcall setDS(long) 67@ stdcall setDX(long) 68@ stdcall setEAX(long) 69@ stdcall setEBP(long) 70@ stdcall setEBX(long) 71@ stdcall setECX(long) 72@ stdcall setEDI(long) 73@ stdcall setEDX(long) 74@ stdcall setEFLAGS(long) 75@ stdcall setEIP(long) 76@ stdcall setES(long) 77@ stdcall setESI(long) 78@ stdcall setESP(long) 79@ stdcall setFS(long) 80@ stdcall setGS(long) 81@ stdcall setIF(long) 82@ stdcall setIP(long) 83@ stdcall setMSW(long) 84@ stdcall setOF(long) 85@ stdcall setPF(long) 86@ stdcall setSF(long) 87@ stdcall setSI(long) 88@ stdcall setSP(long) 89@ stdcall setSS(long) 90@ stdcall setZF(long) 91 92 93;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 94;; NTVDM CCPU MIPS Compatibility ;; 95;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 96 97@ stdcall c_getAF() getAF 98@ stdcall c_getAH() getAH 99@ stdcall c_getAL() getAL 100@ stdcall c_getAX() getAX 101@ stdcall c_getBH() getBH 102@ stdcall c_getBL() getBL 103@ stdcall c_getBP() getBP 104@ stdcall c_getBX() getBX 105@ stdcall c_getCF() getCF 106@ stdcall c_getCH() getCH 107@ stdcall c_getCL() getCL 108@ stdcall c_getCS() getCS 109@ stdcall c_getCX() getCX 110@ stdcall c_getDF() getDF 111@ stdcall c_getDH() getDH 112@ stdcall c_getDI() getDI 113@ stdcall c_getDL() getDL 114@ stdcall c_getDS() getDS 115@ stdcall c_getDX() getDX 116@ stdcall c_getEAX() getEAX 117@ stdcall c_getEBP() getEBP 118@ stdcall c_getEBX() getEBX 119@ stdcall c_getECX() getECX 120@ stdcall c_getEDI() getEDI 121@ stdcall c_getEDX() getEDX 122@ stdcall c_getEIP() getEIP 123@ stdcall c_getES() getES 124@ stdcall c_getESI() getESI 125@ stdcall c_getESP() getESP 126@ stdcall c_getFS() getFS 127@ stdcall c_getGS() getGS 128@ stdcall c_getIF() getIF 129@ stdcall c_getIP() getIP 130@ stdcall c_getMSW() getMSW 131@ stdcall c_getOF() getOF 132@ stdcall c_getPF() getPF 133@ stdcall c_getSF() getSF 134@ stdcall c_getSI() getSI 135@ stdcall c_getSP() getSP 136@ stdcall c_getSS() getSS 137@ stdcall c_getZF() getZF 138 139@ stdcall c_setAF(long) setAF 140@ stdcall c_setAH(long) setAH 141@ stdcall c_setAL(long) setAL 142@ stdcall c_setAX(long) setAX 143@ stdcall c_setBH(long) setBH 144@ stdcall c_setBL(long) setBL 145@ stdcall c_setBP(long) setBP 146@ stdcall c_setBX(long) setBX 147@ stdcall c_setCF(long) setCF 148@ stdcall c_setCH(long) setCH 149@ stdcall c_setCL(long) setCL 150@ stdcall c_setCS(long) setCS 151@ stdcall c_setCX(long) setCX 152@ stdcall c_setDF(long) setDF 153@ stdcall c_setDH(long) setDH 154@ stdcall c_setDI(long) setDI 155@ stdcall c_setDL(long) setDL 156@ stdcall c_setDS(long) setDS 157@ stdcall c_setDX(long) setDX 158@ stdcall c_setEAX(long) setEAX 159@ stdcall c_setEBP(long) setEBP 160@ stdcall c_setEBX(long) setEBX 161@ stdcall c_setECX(long) setECX 162@ stdcall c_setEDI(long) setEDI 163@ stdcall c_setEDX(long) setEDX 164@ stdcall c_setEIP(long) setEIP 165@ stdcall c_setES(long) setES 166@ stdcall c_setESI(long) setESI 167@ stdcall c_setESP(long) setESP 168@ stdcall c_setFS(long) setFS 169@ stdcall c_setGS(long) setGS 170@ stdcall c_setIF(long) setIF 171@ stdcall c_setIP(long) setIP 172@ stdcall c_setMSW(long) setMSW 173@ stdcall c_setOF(long) setOF 174@ stdcall c_setPF(long) setPF 175@ stdcall c_setSF(long) setSF 176@ stdcall c_setSI(long) setSI 177@ stdcall c_setSP(long) setSP 178@ stdcall c_setSS(long) setSS 179@ stdcall c_setZF(long) setZF 180 181 182;;;;;;;;;;;;;;;;;;;;;;;;;;;; 183;; NTVDM DOS-32 Emulation ;; 184;;;;;;;;;;;;;;;;;;;;;;;;;;;; 185 186@ stdcall demClientErrorEx(long long long) 187@ stdcall demFileDelete(ptr) 188@ stdcall demFileFindFirst(ptr ptr long) 189@ stdcall demFileFindNext(ptr) 190;@ stdcall demGetFileTimeByHandle_WOW 191@ stdcall demGetPhysicalDriveType(long) 192@ stdcall demIsShortPathName(ptr long) 193;@ stdcall demLFNCleanup 194;@ stdcall demLFNGetCurrentDirectory 195@ stdcall demSetCurrentDirectoryGetDrive(ptr ptr) 196;@ stdcall demWOWLFNAllocateSearchHandle 197;@ stdcall demWOWLFNCloseSearchHandle 198;@ stdcall demWOWLFNEntry 199;@ stdcall demWOWLFNGetSearchHandle 200;@ stdcall demWOWLFNInit 201 202 203;;;;;;;;;;;;;;;;;;;;;;;;; 204;; NTVDM Miscellaneous ;; 205;;;;;;;;;;;;;;;;;;;;;;;;; 206 207@ stdcall MGetVdmPointer(long long long) 208@ stdcall Sim32pGetVDMPointer(long long) 209 210;@ stdcall VdmFlushCache(long long long long) ; Not exported on x86 211@ stdcall VdmMapFlat(long long long) 212;@ stdcall VdmUnmapFlat(long long ptr long) ; Not exported on x86 213 214@ stdcall VDDInstallMemoryHook(long ptr long ptr) 215@ stdcall VDDDeInstallMemoryHook(long ptr long) 216 217@ stdcall VDDAllocMem(long ptr long) 218@ stdcall VDDFreeMem(long ptr long) 219@ stdcall VDDIncludeMem(long ptr long) 220@ stdcall VDDExcludeMem(long ptr long) 221 222@ stdcall call_ica_hw_interrupt(long long long) 223@ stdcall VDDReserveIrqLine(long long) 224@ stdcall VDDReleaseIrqLine(long long) 225 226@ stdcall VDDInstallIOHook(long long ptr ptr) 227@ stdcall VDDDeInstallIOHook(long long ptr) 228 229@ stdcall VDDRequestDMA(long long ptr long) 230@ stdcall VDDQueryDMA(long long ptr) 231@ stdcall VDDSetDMA(long long long ptr) 232 233@ stdcall VDDSimulate16() 234@ stdcall host_simulate() VDDSimulate16 235@ stdcall VDDTerminateVDM() 236 237@ stdcall VDDInstallUserHook(long ptr ptr ptr ptr) 238@ stdcall VDDDeInstallUserHook(long) 239