Category : C Source Code
Archive   : RXGRAPH.ZIP
Filename : BIOSDOT.C

 
Output of file : BIOSDOT.C contained in archive : RXGRAPH.ZIP
#if 0
BIOSDOT.C

Procedures contained:

void put_dot (row, col, color) int row, col; unsigned char color;
int get_dot (row, col) int row, col;

Procedures called: None
Include files:

These functions read and write the color values for individual pixels in
320 by 200 (medium resolution) or 640 by 200 (high resolution) graphics
mode on a CGA, using BIOS calls. This is slower than using the memory
mapped routines but is more reliable and portable and may be required in
a multiprogramming environment like DDOS.
#endif

#include

void put_dot(row, col, color) int row, col; unsigned char color;
{
union REGS regs;
regs.h.ah=0x0C;
regs.h.al=color;
regs.x.dx=row;
regs.x.cx=col;
int86(0x10,®s,®s);
}

int get_dot(row, col) int row, col;
{
union REGS regs;
regs.h.ah=0x0D;
regs.x.dx=row;
regs.x.cx=col;
int86(0x10,®s,®s);
return regs.h.al;
}


  3 Responses to “Category : C Source Code
Archive   : RXGRAPH.ZIP
Filename : BIOSDOT.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/