Hi,

On 7/5/11, kurt godel <wb2...@gmail.com> wrote:
>
> Maybe someone would know; was playing with old fashioned 16 bit graphics,
> compiling with djgpp. The djgpp info warns that both bios and vga approach
> go outside of protected mode, so that
> mangling of the system is possible.

VESA 2 supports pmode, IIRC, but I've never fiddled with it.

> Such programs don't even run in NTVDM
> dos emulator, but work in ,say, freedos.

Most things (including VESA?) don't work in NTVDM barely, if at all,
esp. for anything higher than XP. (Vista and 7 don't support *ANY* DOS
graphics.) And even XP was very very weak. DOSBox 0.74 is your friend,
though it's slow.

I think you're thinking of the "near pointer" stuff in DJGPP v2
(implemented for Quake), which disables protection and can crash the
machine (but is "faster and easier" ???). That indeed doesn't work
under Windows NT-based OSes due to their bugs (not ours), which they
never fixed. Well, if they didn't fix it when Quake 1 was hot stuff
(1996), they surely won't now.

E.g. almost all open source Doom "ports" for DOS use "near pointers",
so 99% of them don't work under WinXP. But search for CDoom, it works
in WinXP (though probably only in 320x200x256 VGA mode 13h). Sound
never works either except with VDMsound [deprecated] (but seemingly
not in DOSEMU for me anymore either, dunno why). Again, DOSBox 0.74 is
your friend here. (QEMU supports SB emulation, VirtualBox doesn't.
Both have some bugs regarding segmentation and DOS support in
general.)

>   Then tried grx under djgpp, and it also won't work in NTVDM, and will work
> in freedos. My question is: with the grx scheme, am I in protected mode?

Check the sources to "old" Allegro 4.2.2 to see how they do it.

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Freedos-user mailing list
Freedos-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-user

Reply via email to