The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: bruce1948 on August 10, 2009, 01:43:46 AM

Title: DOS Emulators Under Windows
Post by: bruce1948 on August 10, 2009, 01:43:46 AM
I've just been running one of my old DOS games in DOSBOX under windows XP and it suddenly struck me that I can't work out how they manage to emulate the DOS interrupts, for example the soundblaster SB16 interrupts. Anybody got any idea?

thanks

bruce
Title: Re: DOS Emulators Under Windows
Post by: dedndave on August 10, 2009, 01:59:37 AM
some functions are emulated though API calls
some functions use ring 0 access to actually perform the i/o as intended
i noticed on an old program of mine, that it even allowed me to reprogram the BIOS tick counter
that program was carefully written so interrupts would arrive to my handler precisely when needed
but, i kept careful count of the ticks and still generate INT 1Ah (i think that's the one) every 18.2 ms
i use it to generate morse code - morse sounds terrible if the timing is not continuous
it will be a challenge to write that function in 32-bit without using ring 0
Title: Re: DOS Emulators Under Windows
Post by: bruce1948 on August 10, 2009, 11:34:43 PM
Thanks Dave
Title: Re: DOS Emulators Under Windows
Post by: hutch-- on August 10, 2009, 11:38:30 PM
Bruce,

If you can be bothered, get the freeware VM from Microsoft for your OS version and install DOS into it and it will run better again that the system VM that runs DOS in win32/64. Some of the later Intel processors have virtualisation hardware built into them and from memory some of the recent VMs use it so it comes even closer to direct hardware.
Title: Re: DOS Emulators Under Windows
Post by: bruce1948 on August 10, 2009, 11:49:44 PM
Thanks for the suggestion hutch now all I need to do is remember what i did with my DOS disks.
Title: Re: DOS Emulators Under Windows
Post by: hutch-- on August 12, 2009, 08:50:10 AM
I doubt they last that long but somethimes you are lucky. I have three SFX files for DOS 6.22 if you really need them but I think you would need something as old as win9x to run them as they write direct to the floppy and may not work on a later OS version.
Title: Re: DOS Emulators Under Windows
Post by: bruce1948 on August 12, 2009, 07:45:09 PM
Thanks for the offer hutch, but I can probably find someone who's running a DOS machine.



Thanks all the same


bruce