www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/03/23:54:19

Message-Id: <3.0.6.32.19990203222148.008b49c0@pop.netaddress.com>
X-Sender: pderbysh AT pop DOT netaddress DOT com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Wed, 03 Feb 1999 22:21:48 -0500
To: djgpp AT delorie DOT com
From: Paul Derbyshire <pderbysh AT usa DOT net>
Subject: Re: Q: Forcing mode CO80
In-Reply-To: <Pine.SUN.3.91.990203133142.29547Y-100000@is>
References: <3 DOT 0 DOT 6 DOT 32 DOT 19990202110837 DOT 008059f0 AT pop DOT netaddress DOT com>
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019