home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / drdobbs / ddjcompr / hstest / lib / txinter.c < prev   
C/C++ Source or Header  |  1990-06-01  |  344b  |  23 lines

  1. /**
  2. *** interface to TX
  3. **/
  4. #include "tx.h"
  5. #include "dos.h"
  6. tx_init()
  7. {
  8.     extern main();
  9.     void far *p = main;
  10.     if (*(long far *)(TX_INT*4))
  11.         BIOS(TX_INT,TX_INIT,FP_SEG(p));
  12. }
  13. tx_enable()
  14. {
  15.     if (*(long far *)(TX_INT*4))
  16.         BIOS(TX_INT,TX_ENABLE);
  17. }
  18. tx_disable()
  19. {
  20.     if (*(long far *)(TX_INT*4))
  21.         BIOS(TX_INT,TX_DISABLE);
  22. }
  23.