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

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  BIPORT.H - Port TC/TC++/BC++ code using register pseudovariables
  5. **
  6. **  public domain by Bob Stout
  7. */
  8.  
  9. #ifndef __TURBOC__
  10.  
  11. #ifndef BIPORT__H
  12. #define BIPORT__H
  13.  
  14. #include <dos.h>
  15. #include "dirport.h"
  16.  
  17. extern union  REGS  BIP_regs_;
  18. extern struct SREGS BIP_sregs_;
  19.  
  20. #define _AX BIP_regs_.x.ax
  21. #define _BX BIP_regs_.x.bx
  22. #define _CX BIP_regs_.x.cx
  23. #define _DX BIP_regs_.x.dx
  24. #define _AH BIP_regs_.h.ah
  25. #define _AL BIP_regs_.h.al
  26. #define _BH BIP_regs_.h.ah
  27. #define _BL BIP_regs_.h.al
  28. #define _CH BIP_regs_.h.ah
  29. #define _CL BIP_regs_.h.al
  30. #define _DH BIP_regs_.h.ah
  31. #define _DL BIP_regs_.h.al
  32. #define _SI BIP_regs_.x.si
  33. #define _DI BIP_regs_.x.di
  34. #define _CF BIP_regs_.x.cflag
  35. #define _FF BIP_regs_.x.flags
  36. #define _ES BIP_sregs_.es
  37. #define _CS BIP_sregs_.cs
  38. #define _SS BIP_sregs_.ss
  39. #define _DS BIP_sregs_.ds
  40. #define regload_() segread(&BIP_sregs_)
  41.  
  42. #ifndef geninterrupt
  43.  unsigned PASCAL geninterrupt(int);
  44. #endif
  45.  
  46. #endif /* BIPORT__H */
  47.  
  48. #endif /* __TURBOC__ */
  49.