home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / DSKUTL / DSKTST.ARC / LOCATE.C < prev   
Encoding:
C/C++ Source or Header  |  1985-08-06  |  640 b   |  17 lines

  1. #include "dos.h"
  2. /******************************************************************************
  3. *                                          *
  4. *  locate the cursor                                  *
  5. *                                          *
  6. ******************************************************************************/
  7. locate(row,col)            /* cursor  row, col, attribute */
  8. int row,col;
  9. {
  10.   union REGS reg;
  11.   reg.h.bh = 0;            /* page number */
  12.   reg.h.dh = row;           /* set row number */
  13.   reg.h.dl = col;           /* set col number */
  14.   reg.h.ah = 2;            /* set csr command */
  15.   int86(0x10,®,®);       /* clr the screen */
  16. }
  17.