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