3 ms·
> Unfortunately no 16-bit Windows executables work on 64 bit, True. But the do work on Wine on modern 64-bit Linux. :) In fact, even DOSEMU works on modern 6
by amluto 10y ago
> Unfortunately no 16-bit Windows executables work on 64 bit,
True. But the do work on Wine on modern 64-bit Linux. :) In fact, even DOSEMU works on modern 64-bit Linux -- take that, Windows backwards compatibility! (But use DOSEMU2 if you do this -- it's better supported.)
> since x86-64 processors lack the ability to run in 16-bit mode.
Not true.
64-bit processors running in "long mode" (i.e. running a 64-bit kernel) can't enter "virtual 8086" mode, which makes various real mode emulation (DOS non-protected mode, for example) awkward. But modern CPUs are so fast that they can emulate this kind of code very well, and CPUs with virtualization extensions can run real mode or virtual 8086 mode code in a VM even when the host is 64-bit.
(64-bit kernels can, in theory, switch out of long mode temporarily, but this is an incredible mess. Linux used to do it for certain UEFI compatibility scenarios, but this proved to be deeply problematic, and Linux doesn't do that any more.)
- andrewf 10y agoCould you talk a little more about DOSEMU2 versus DOSEMU? I'm literally spinning up DOSEMU today to run a bunch of old DOS compilers (Watcom). I can't find much on DOSEMU2 other than its release logs, which seem focused on games and amd64. I think that Lredir/emufs (access to the Linux filesystem) and "dumb" stdin/out are important features to me.
- stuaxo 10y agoI think Stas Sergeev wanted a place to do bigger changes to dosemu at the same time as Bart Oldeman has been stepping back / busy with other things. So Stas made a dosemu2 repo on github, with the additional benefits of being a more modern development environment than sourceforge. It's worth having a play with, some of the older more knarly parts of the source are getting dealt with.
- amluto 10y agoStas also tells me when I accidentally break dosemu2, and dosemu gets updated to take advantage of newer kernel features. Headline features include espfix64 (for more accurate returns to DOS code from interrupts) and proper SS sigcontext support (ditto). Lifechanging, I know :)