Mail Archives: djgpp/1999/02/03/23:54:19
At 01:32 PM 2/3/99 +0200, you wrote:
>> Can anyone exhibit for me a snippet of code that retrieves the current
>> video mode code number and one that sets an arbitrary video mode by number?
>
>For getting the mode, either call function 0Fh of interrupt 10h, or
>look at _farpeekb(_dos_ds, 0x449). For setting the mode, call
>function 0 of interrupt 10h.
Note: the info in djdev202.zip has been checked, not the old 2.01 info!
1. What header needs to be included to get _dos_ds? The info file has
nothing to say (there is no node for _dos_ds).
2. What header needs to b included to get _farpeekb? The info file
has nothing to say (the info node for _farpeekb is a copy of the
info node for free!)
3. I assume that I need _dpmi_int to invoke 10h?
4. How do I invoke _dpmi_int with a particular function number (e.g.
0x10) and parameters? In particular with finction 0x10? The
_dpmi_int info node merely says to check the DPMI specification.
The link for the DPMI specification just lists a bunch of phone
numbers and Internet addresses instead of actually displaying the
specification info!
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." -------------------------------------------------
-- B. Mandelbrot |http://surf.to/pgd.net
_____________________ ____|________ Paul Derbyshire pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|
- Raw text -