home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT18.C < prev    next >
C/C++ Source or Header  |  1993-03-30  |  504b  |  28 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.al = 1;                            /* assume resume */
  18.     printf("\nP)ause   R)esume  : ");
  19.     if(toupper(getch()) == 'P')
  20.         regs.h.al = 0;
  21.     regs.h.ah = 0x18;
  22.     regs.x.dx = dx;
  23.  
  24.     printf("\nCall   - AH : %02X  AL : %02X",regs.h.ah, regs.h.al);
  25.     int86(0x14,®s,®s);
  26.     printf("\nReturn - AH : %02X",regs.h.ah);
  27.  
  28. }