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

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