Message-Id: <199710232245.IAA27500@rabble.uow.edu.au> Subject: Re: int86x problems To: wolfman AT cedar DOT alberni DOT net Date: Fri, 24 Oct 1997 08:45:38 +1000 (EST) Cc: djgpp AT delorie DOT com (DJGPP) In-Reply-To: from "wolfman@cedar.alberni.net" at "Oct 23, 97 01:12:50 am" From: Brett Porter MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk > 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, ®s, ®s, &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. > As far as I remember, the FAQ suggests using __dpmi_int for all real mode interrupt calls. And I think you will also have to set EDI not DI to (unsigned int)&vesainfo and the ES to _my_ds()... but I am not totally sure on this, because I can't remember if the DPMI server converts these back to their real mode equivalents. Sorry I am a little unclear but you said to hurry, so I couldn't go research it :) IT is probably worth a try, though. And Eli is bound to correct me if I'm wrong :) HTH Brett -- "Who here believes in telekenesis? Raise MY hand!" -- Brett Porter bporter AT rabble DOT uow DOT edu DOT au http://www.geocities.com/CollegePark/Union/3596 Humour, Programming, and more.