www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/02/10/20:12:39

Message-Id: <3.0.6.32.19990210194459.00835200@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, 10 Feb 1999 19:44:59 -0500
To: djgpp AT delorie DOT com
From: Paul Derbyshire <pderbysh AT usa DOT net>
Subject: Re: Q: Forcing mode CO80
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

Hey... whoever sent the code snippets for a quick&dirty video mode get/set,
thanks again, and could you please identify yourself? I seem to have lost
the original email and the sender's name and I am about to stick a comment
in some source code crediting them for these little functions.

At 05:14 PM 2/2/99 -0800, somebody wrote:
>#include <dpmi.h>
>
>void set_mode(int m)
>{
>  __dpmi_regs r;
>  r.h.ah = 0;
>  r.h.al = m;
>  __dpmi_int(0x10, &r);
>}
>
>int get_mode(void)
>{
>  __dpmi_regs r;
>  r.h.ah = 0x0f;
>  __dpmi_int(0x10, &r);
>  return r.h.al;
>}
-- 
   .*.  "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