home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT0A.C < prev    next >
C/C++ Source or Header  |  1993-03-29  |  458b  |  29 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.  
  14. /* special char - <CR> */
  15.  
  16.  
  17. printf("\nEnter DX : ");
  18. scanf("%d",&dx); while(kbhit()) getch();
  19.  
  20.  
  21.     regs.x.ax = 0x0A00;
  22.     regs.x.dx = dx;
  23.     printf("\nCall   - AH : %02X",regs.h.ah);
  24.     int86(0x14,®s,®s);
  25.     printf("\nReturn - AX : %04X  DH : %02X  ZF : %d",regs.x.ax,regs.h.dh,
  26.                                                       (regs.x.flags&0x40)>>6);
  27.  
  28.  
  29. }