home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / prof_c / 05oslib / bios / writedot.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-08-11  |  441 b   |  24 lines

  1. /*
  2.  *    writedot -- display a dot at the specified position
  3.  */
  4.  
  5. #include <dos.h>
  6. #include <local\std.h> 
  7. #include <local\bioslib.h>
  8.  
  9. int
  10. writedot(r, c, color)
  11. int r, c;    /* row and column cordinate */
  12. int color;    /* dot (pixel) color */
  13. {
  14.     union REGS inregs, outregs;
  15.  
  16.     inregs.h.ah = WRITE_DOT;
  17.     inregs.h.al = color;
  18.     inregs.x.cx = c;
  19.     inregs.x.dx = r;
  20.     int86(VIDEO_IO, &inregs, &outregs);
  21.  
  22.     return (outregs.x.cflag);
  23. }
  24.