home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / msdos / dskutl / dsktst.arc / CSRPOS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1985-08-07  |  640 b   |  17 lines

  1. #include "dos.h"
  2. /******************************************************************************
  3. *                                          *
  4. *  locate the cursor                                  *
  5. *                                          *
  6. ******************************************************************************/
  7. csrpos(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.ah = 3;            /* set csr command */
  13.   int86(0x10,®,®);       /* clr the screen */
  14.   *row = reg.h.dh;           /* set row number */
  15.   *col = reg.h.dl;           /* set col number */
  16. }
  17.