Category : System Diagnostics for your computer
Archive   : INTERCE.ZIP
Filename : INTERCEP.H

 
Output of file : INTERCEP.H contained in archive : INTERCE.ZIP
/* intercep.h -- header file for intercep.c
* typedefs, defaults, etc.
* Ned Konz 8/1/87
*/

/* some syntactic sugar */
typedef void interrupt (far *IFP)(); /* pointer to interrupt function */
typedef IFP far *IFPP; /* and pointer to those */

/* structure which makes up list of interrupts to capture */
typedef struct {
int intnum; /* which interrupt */
IFP oldint; /* old handler */
} Intblock;

/* structure which is left on stack after interrupt */
typedef struct {
IFP ipcs; /* IP, CS */
unsigned flags;
} Intpack;

/* structure which is pushed onto stack by entry into
* an interrupt function in Turbo C
*/
typedef struct {
unsigned bp, di, si, ds, es, dx;
union {
unsigned old[3]; /* actually cx, bx, and ax */
Intpack new; /* where we will chain to */
} ovl;
} Regpack;

/* what we record in our memory block about each interrupt */
typedef struct {
Regpack regs;
Intpack caller;
int intnum;
} Swi_info;

/* some defaults */
#define MAX_INTS 30 /* maximum number of interrupt vectors */
#define MAX_INTERRUPTS 2500 /* about 64K (arbitrary) */
#define OFILENAME "intercep.out" /* output file name */

#define OFILTER "interpre.exe" /* output filter name */
#define TFILENAME "interpre.dat" /* template file name */


  3 Responses to “Category : System Diagnostics for your computer
Archive   : INTERCE.ZIP
Filename : INTERCEP.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/