home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT11.C < prev    next >
C/C++ Source or Header  |  1993-03-29  |  412b  |  27 lines

  1.  
  2. #include <dos.h>
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.  
  8.     struct REGPACK  sregs;
  9.  
  10.     int    y,x,numbytes,dx;
  11.  
  12.     union REGS regs;
  13.     /*struct SREGS sregs;*/
  14.  
  15.     /* special char - <CR> */
  16.  
  17.  
  18.     printf("\nEnter DX : ");
  19.     scanf("%d",&dx); while(kbhit()) getch();
  20.  
  21.     regs.h.ah = 0x11;
  22.     regs.x.dx = dx;
  23.     printf("\nCall   - AH : %2X",regs.h.ah);
  24.     int86(0x14,®s,®s);
  25.     printf("\nReturn - AH : %2X",regs.h.ah);
  26.  
  27. }