home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / BIPORT.C < prev    next >
C/C++ Source or Header  |  1997-07-05  |  478b  |  27 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  BIPORT.C - Port TC/TC++/BC++ code using register pseudovariables
  5. **
  6. **  public domain by Bob Stout
  7. */
  8.  
  9. #ifndef __TURBOC__
  10.  
  11. #include "biport.h"
  12.  
  13. union  REGS  BIP_regs_;
  14. struct SREGS BIP_sregs_;
  15.  
  16. #ifndef geninterrupt
  17.  
  18. unsigned PASCAL geninterrupt(int int_no)
  19. {
  20.       int86x(int_no, &BIP_regs_, &BIP_regs_, &BIP_sregs_);
  21.       return BIP_regs_.x.ax;
  22. }
  23.  
  24. #endif /* geninterrupt() */
  25.  
  26. #endif /* __TURBOC__ */
  27.