D
David Candy
If you think about it you realise that Dos programs do write to hardware. In fact it's the rare program that doesn't. All windows intercepted direct video writes, that's why graphics are so slow in a windowed screen. The point is if a dos program accesses the sort of hardware that dos programs usually did then that hardware is emulated. This bares no relationship to your hardware what the dos program thinks it's accessing.
So it's true and false that Dos programs that try to write to hardware won't run. If you have a custom built retail system I think you might be pushing it, but if a game writes to a CGA or VGA card then that appears in the dos window.
I'm running LHX Attack Chopper with the anti snow turned on. This required writing to a specific port on the CGA card.
There aren't many dos programs that don't work in the emulator. And those that don't seem to use particular versions of dos memory managers.
--
http://www.smh.com.au/news/opinion/webdiary/index.html
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
So it's true and false that Dos programs that try to write to hardware won't run. If you have a custom built retail system I think you might be pushing it, but if a game writes to a CGA or VGA card then that appears in the dos window.
I'm running LHX Attack Chopper with the anti snow turned on. This required writing to a specific port on the CGA card.
There aren't many dos programs that don't work in the emulator. And those that don't seem to use particular versions of dos memory managers.
--
http://www.smh.com.au/news/opinion/webdiary/index.html
---------------------------------------------------------------
David Candy
http://www.mvps.org/serenitymacros
---------------------------------------------------------------
GSV Three Minds in a Can said:from the said:David Candy said:Windows XP supports DIRECT HARDWARE ACCESS for Dos programs for well
known hardware devices. All windows emulated hardware to dos. As
direct hardware calls are generally easy to recognise (eg if one
writes to port 330 it's the MIDI port - and XP will recognise it as
such, and will send it through a VXD, to a driver, then to your sound
card [which may or may not be using port 330]). Hardware control is
the only way of controlling a sound card.
It doesn't support direct hardware access for devices that are not
well known.
That is the exact oppositte of my understanding.
NT based versions of Windows allow no direct access to the hardware by
application programs.
That is why DOS games that write directly to the video, DOS
communications programs that work directly with the serial port, and
specialty applications that work directly with a parallel port
authorisation plug (dongle) will not run.
That was my understanding too, based on comments received over the
years, and DOS programs that don't run under WinNT (vs those that do),
however I've never poked at the internals of the CMD DOS emulator, so
I'm prepared to believe either .. Sound certainly works (with 'legacy
sound support', and occasionally additional emulation software, loaded)
for some DOS games, and I do believe those were directly prodding the
sound card hardware.