www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/17/03:28:05

Date: Sun, 17 Nov 1996 09:57:00 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Jaroslav Kamenik <stone AT atrey DOT karlin DOT mff DOT cuni DOT cz>
Cc: djgpp AT delorie DOT com
Subject: Re: DPMI + VESA problem
In-Reply-To: <56hksh$d4e$1@ns.felk.cvut.cz>
Message-Id: <Pine.SUN.3.91.961117095142.12547Q-100000@is>
Mime-Version: 1.0

On 15 Nov 1996, Jaroslav Kamenik wrote:

>   My code which plays with VESA functions hung at exit.
[snip]
>   r.x.ax = 0x4f00;
>   r.x.es = BufDosSeg;
>   r.x.di = 0x0000;
>   __dpmi_simulate_real_mode_interrupt(0x10,&r);

You should always zero-out the r.x.ss, r.x.sp and r.x.flags before calling
the interrupt-simulation function (it's in the FAQ, btw).  Better still,
use the `__dpmi_int' function which does that for you. 

And btw, you don't have to allocate and deallocate DOS buffer all the 
time.  You can just use the transfer buffer which is already allocated 
for you.  This is also in the FAQ (section 18.2), seems you should browse 
chapter 18 of the FAQ.

- Raw text -


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