Mail Archives: djgpp/1997/10/23/18:47:48
> 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.
- Raw text -