Mail Archives: djgpp/1996/11/05/19:28:23
> Can someone tell me how to translate this into DJGPP(GCC) code...
You really should read the faq... :)
> #include <dos.h>
> void _highcolor(void)
> {
> _AH = 0x10;
> _AL = 0x03;
> _BL = 0x00;
> geninterrupt(0x10);
> }
void highcolor(void)
{
__dpmi_regs r;
r.h.ah = 0x10;
r.h.al = 0x03;
r.h.bl = 0x00;
__dpmi_int(0x10, &r);
}
> void _lowcolor(void)
> {
> _AH = 0x10;
> _AL = 0x03;
> _BL = 0x01;
> geninterrupt(0x10);
> }
void lowcolor(void)
{
__dpmi_regs r;
r.h.ah = 0x10;
r.h.al = 0x03;
r.h.bl = 0x01;
__dpmi_int(0x10, &r);
}
Again, read the FAQ!
Leathal.
- Raw text -