home *** CD-ROM | disk | FTP | other *** search
- /*
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Title : insint24 │
- │ Purpose : Install a critical Error Handler and set the error code to zero │
- │ │
- │ Written by Jack Zucker - 75766,1336 301-794-5950 │
- └────────────────────────────────────────────────────────────────────────────┘
- */
- insint24()
- {
- extern char far int24error; /* point to int24error */
- TVECTOR wvector;
- int int24hnd();
-
- int24error = 0; /* initialize error to 0 */
-
- wvector.segment = getcs(); /* get code segment address */
- wvector.offset = (int) int24hnd; /* get offset of handler */
- cli(); /* disable interrupts */
- jzsetint(0x24,wvector); /* enable our handler */
- sti(); /* allow interrupts */
- }