home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Programmer's Library 1.3 / Microsoft-Programers-Library-v1.3.iso / sampcode / alde_c / misc / util / cxref / wherey.c < prev   
Encoding:
C/C++ Source or Header  |  1988-06-01  |  205 b   |  15 lines

  1. #include <stdio.h>
  2.  
  3. int WhereY()
  4. {
  5.    struct
  6.    {
  7.       int AX, BX, CX, DX, SI, DI;
  8.    } Regs;
  9.  
  10.    Regs.AX = 0x0300;
  11.    Regs.BX = 0;
  12.    int86(0x10, &Regs, &Regs);
  13.    return (Regs.DX >> 8);
  14. }
  15.