[NTVDM]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 24 Feb 2014 00:33:21 +0000 (00:33 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Mon, 24 Feb 2014 00:33:21 +0000 (00:33 +0000)
commit9542b8693415755d2067515155fd9af1e091ad51
tree9c9757eb17ae216f926767e12e3f2c50eabb179b
parentec52f30bc5192db00484e007ddcd34ff23b3e3cd
[NTVDM]
- Move an "enable interrupts" command to where it belongs (i.e. in the BIOS32 initialization code; we do it at the very end). Otherwise some problems appears when trying to load 16-bit bios images.
- Use the new macro REAL_TO_PHYS to convert "real-mode" pointers (valid inside the VM only) into "physical" ones (valid in ROS/Windows/whatever).
- Add BIG HACKs (thanks Aleksander ;) ) in EmulatorRead/WriteMemory for wrapping up high memory addresses to low ones, so that we can load bios images (when you start running code at F000:FFF0).

To test 16-bit bios images: in ntvdm.c, put a valid bios file name in the BiosInitialize(...) call, and disable all DOS calls that happen before EmulatorSimulate().

svn path=/branches/ntvdm/; revision=62314
subsystems/ntvdm/bios/bios32/bios32.c
subsystems/ntvdm/emulator.c