home *** CD-ROM | disk | FTP | other *** search
/ FreeWare Collection 2 / FreeSoftwareCollection2pd199x-jp.img / ms_dos / fmgraph / g_gcrpos.c < prev    next >
Text File  |  1990-06-14  |  266b  |  17 lines

  1. #include    <stdio.h>
  2. #include    <dos.h>
  3.  
  4. extern    unsigned    char    gds_fshift;
  5.  
  6. void    g_gcurpos(unsigned x,unsigned y)
  7. {
  8.     union REGS    reg;
  9.     struct SREGS    seg;
  10.  
  11.     segread(&seg);
  12.     reg.h.ah=gds_fshift+0x13;
  13.     reg.x.dx=x;
  14.     reg.x.cx=y;
  15.     int86x(0x92,®,®,&seg);
  16. }
  17.