EMU2: A simple text-mode x86 and DOS emulator
github.com
github.com
My goal was to have a mechanism for bootstrapping a compiler, similar to the Stage0 [0] project, but with a lot more software already written for it and less focus on having it be verifiable. This was to eliminate one more external dependency for building my Linux distribution, which is already cross-compiled and double-compiled to verify that builds are reproducible, in order to ensure that a version can be maintained for a long time.
There's a small community of people doing this that you might find helpful (if you haven't already) at vogons.org in the PC Emulation forum.
As for DOS emulation, will it emulate 43 or 50 line EGA mode, like the IBM PC w/ EGA?
I wonder whether this could´ve made that problem easier.
It could support graphics (pop up a window if a program tries it). Another emulator does this- it's pretty easy with SDL:
https://github.com/adriancable/8086tiny
You can run the CP/M Turbo PASCAL in almost the exact same way with this:
I've debated for awhile trying to write a "UEFI DOS" for awhile. Thus far I've always shied away because of the sheer immensity of just getting a UEFI dev env set up much less one that would support emulation/virtualization of DOS applications so they could pretend they are on original hardware.
All of that is not even considering the whole bytecode vs. native issue...
dosemu was out because my host wasn't x86. dosbox was out because I wanted to run a process with filesystem access, not a whole system. qemu's system emulation has the same problem as dosbox, and qemu's user-mode emulation runs Linux programs, not MS-DOS programs.
dosemu -dumb -exec dir >foo
Or this if you want to see the output on the screen: dosemu -dumb -E dirNot portable. Oh, well. Nice idea.
It does so much more than graphics, just limited on printing to devices.
EMU2 reminds me of the Amiga Transformer PC Emulator: http://forum.amiga.org/index.php?topic=70305.0