News for hackers. Stuff that matters.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by pgeorgi on Sunday November 03, 2013 @11:25AM (#6663701)
People speculate in the comments that Microsoft could provide a 16bit emulator in Windows for DOS applications. In fact they have an x86 emulator in Windows, but not for DOS.

It's used to run int10h calls (VGABIOS) on early initialization, funnily even on UEFI.

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by jhallenworld on Sunday November 03, 2013 @12:36PM (#6664087)
I don't understand why they gave up on DOS compatibility for 64-bit Windows.. the effort could not have been all that much for them (either with an emulator or x86 tricks). The benefit is huge: they can continue the lock-in of ancient DOS programs. For example, I can report that OrCAD for DOS works better in 32-bit Windows XP better than it ever did in MS-DOS.

Likewise, I don't understand why vm86 mode can not run directly from 64-bit mode in x86. This seems very like an architectural mistake to me.

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by MBCook on Sunday November 03, 2013 @01:46PM (#6664426)
As I remember, when an x86-64 chip is running in 64 bit mode, it can run 32 bit code, but the option necessary to run in 16 bit mode was removed. To run DOS they'd basically have to have a full emulator for a 286, like a limited version of bochs.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by ciupicri on Sunday November 03, 2013 @03:58PM (#6665017)
> > Why can't you just run the 16-bit emulator from 32-bit Windows in the 32-bit emulator on 64-bit Windows?

> [Because that emulator uses v86-mode, which is not supported by 64-bit processors. -Raymond]

-- http://blogs.msdn.com/b/oldnewthing/archive/2013/10/31/10461...

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by nknighthb on Monday November 04, 2013 @01:25PM (#6670183)
I don't know what mechanisms they use, but VMware's various products run 16-bit code just fine on x86-64 chips. Are you saying they added a full 286 emulator to their virtualization products?
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by pgeorgi on Friday November 08, 2013 @03:54PM (#6699090)
Essentially yes. But I guess they simply kept their virtualization code from pre-hardware virtualization times around. 286 shouldn't require much maintenance :-)
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by ateeqs on Sunday November 03, 2013 @08:48PM (#6666244)
Mmmm, I think it's just not profitable for them to do this any more.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by quasque on Sunday November 03, 2013 @12:44PM (#6664128)
That's interesting, do you mean early initialisation of Windows or the VDM?
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by pbsd on Sunday November 03, 2013 @03:48PM (#6664984)
This has nothing to do with VDM; the emulator is only accessible from kernel mode (it's in HAL.dll) and is not meant to be used by usermode applications. See [1,2].

[1] http://x86asm.net/articles/calling-bios-from-driver-in-windo...

[2] http://www.geoffchappell.com/studies/windows/km/hal/api/x86b...

Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by 4ad on Monday November 04, 2013 @06:32AM (#6667996)
There's also a similar emulator in X, that allows drivers for PC-specific graphics cards that used x86 initialisation in their video BIOS to work on non-x86 platforms, like SPARC.
Re:If there's no 16-bit layer in 64-bit Windows, how come 16... by pgeorgi on Monday November 04, 2013 @07:00AM (#6668088)
We use that same emulator (x86emu) in coreboot to isolate the VGABIOS from real hardware (except the video card, of course)