Mail Archives: djgpp/1996/11/17/03:28:05
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 -