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

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