home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR2 / DIGIPROG.ZIP / FCT6_1.C < prev    next >
Text File  |  1991-06-03  |  455b  |  27 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. char    far *cptr;
  12.  
  13. union REGS regs;
  14.  
  15.     printf("\nEnter DX : ");
  16.     scanf("%d",&dx); while(kbhit()) getch();
  17.  
  18.     sregs.r_ax = 0x0601;
  19.     sregs.r_dx = dx;
  20.     intr(0x14,&sregs);
  21.     printf("\nChannels : %04X ",sregs.r_ax);
  22.     printf("\nVersion  : %04X ",sregs.r_bx);
  23.     printf("\nBoards   : %04X ",sregs.r_cx);
  24.     printf("\nDX Low   : %04X ",sregs.r_dx);
  25.  
  26.  
  27. }