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

  1.  
  2. #include <dos.h>
  3. #include <stdio.h>
  4. #include <conio.h>
  5.  
  6.  
  7. main()
  8. {
  9.     struct REGPACK  sregs;
  10.     int    y,x,numbytes,dx,al;
  11.     union REGS regs;
  12.  
  13.  
  14.  
  15.     printf("\nEnter DX : ");
  16.     scanf("%d",&dx); while(kbhit()) getch();
  17.  
  18.     printf("\nEnter AL : ");
  19.     scanf("%d",&al); while(kbhit()) getch();
  20.  
  21.  
  22.     regs.x.ax = 0x2100;
  23.     regs.x.ax |= al;
  24.     regs.x.dx = dx;
  25.     printf("\nCall   - AH : %02X",regs.h.ah);
  26.     int86(0x14,®s,®s);
  27.     printf("\nReturn - AX : %04X ",regs.x.ax);
  28.  
  29.  
  30. }