home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT14.C < prev    next >
C/C++ Source or Header  |  1993-03-29  |  413b  |  25 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.     printf("\nEnter DX : ");
  15.     scanf("%d",&dx); while(kbhit()) getch();
  16.  
  17.     regs.h.ah = 0x14;
  18.     regs.x.dx = dx;
  19.  
  20.     printf("\nCall   - AH : %02X",regs.h.ah);
  21.     int86(0x14,®s,®s);
  22.     printf("\nReturn - AH : %02X   AL : ASCII : %c  HEX : %02X ",regs.h.ah,
  23.               regs.h.al,regs.h.al);
  24.  
  25. }