delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/22/23:47:39

Newsgroups: comp.os.msdos.djgpp
From: wolfman AT cedar DOT alberni DOT net
Subject: int86x problems
Message-ID: <a167cd$11c32.138@news.alberni.net>
Date: Thu, 23 Oct 1997 01:12:50 GMT
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp


I have this program where I am trying to use vesa.  Now say that I want to get the vesa 
info,  what I have been doing is this:

struct VesaInfoBlock {
     //the regular vesa info stuff
     };

VesaInfoBlock vesainfo;


Later on, I try to get the vesa information like this:


union REGS regs;
struct SREGS sregs;

regs.w.ax = 0x4F02;
regs.w.di = (unsigned short)&vesainfo;

int386x(0x10, &regs, &regs, &sregs);


According to what I read out of the faq this should work, except that I keep getting 
SIGSEV errors.  Please help me and please hurry.

- Raw text -


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