home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT0D.C < prev    next >
C/C++ Source or Header  |  1993-03-29  |  419b  |  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. /* special char - <CR> */
  15.  
  16.  
  17. printf("\nEnter DX : ");
  18. scanf("%d",&dx); while(kbhit()) getch();
  19.  
  20.  
  21.     sregs.r_ax = 0x0D00;
  22.     sregs.r_dx = dx;
  23.     printf("\nCall   - AH : %02X",(sregs.r_ax&0xff00)>>8);
  24.     intr(0x14,&sregs);
  25.     printf("\nReturn - ES : BX = %04X:%04X",sregs.r_es,sregs.r_bx);
  26.  
  27.  
  28. }