home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT22.C < prev    next >
C/C++ Source or Header  |  1993-08-10  |  571b  |  29 lines

  1.  
  2. #include <dos.h>
  3. #include <stdio.h>
  4.  
  5. main()
  6. {
  7.  
  8.     struct REGPACK  sregs;
  9.     union REGS regs;
  10.  
  11.     int                y,x,dx,fct;
  12.     int                far *cnt_ptr;
  13.     unsigned char     far * flg_ptr, buff[100];
  14.  
  15.  
  16.     printf("\nEnter DX : ");
  17.     scanf("%d",&dx); while(kbhit()) getch();
  18.  
  19.     regs.x.ax = 0x2200;        /* AH = fct 20h  AL = 0 disable */
  20.     printf("\nD)isable    E)nable  : ");
  21.     if(toupper(getch()) == 'E') regs.h.al = 1;
  22.  
  23.     regs.x.dx = dx;
  24.  
  25.     printf("\nCall   - AH : %02X     AL : %02X",regs.h.ah, regs.h.al);
  26.     int86(0x14,®s,®s);
  27.     printf("\nReturn - AH : %02X",regs.h.ah);
  28.  
  29. }