Mail Archives: djgpp/1995/09/02/00:16:58
In <DE8wHp DOT M79 AT jade DOT mv DOT net> mat AT ardi DOT com (Mat Hostetter) writes:
>>>>>> "Brainfried" == Brainfried <unlisted AT email DOT adress> writes:
> Brainfried> Here is the code for the simple test program I use (It
> Brainfried> doesn't work), am I doing something wrong?
>The flaw is with the original poster's erroneous claim, not your
>interpretation of it. You can't simply copy to 0xA0000 and expect it
>to appear on the screen.
Hey, it works, here is the code AGAIN!!
_go32_dpmi_registers regs;
unsigned short dos_sel;
void gfx_mode(char mode)
{
dos_sel=_go32_conventional_mem_selector();
regs.x.ax=mode;
regs.x.ss=regs.x.sp=0;
_go32_dpmi_simulate_int(0x10, ®s);
}
This DOES work, I use it DAILY!!!
--
Timothy Wilson --- wilsont AT rahul DOT net --- Sillicon Valley
>Dark Oak Software<-+Entertainment and Applications programming in C
^^^^^^^^^^^^^^^^^^^+->X/Unix, and MS-DOS
- Raw text -