home *** CD-ROM | disk | FTP | other *** search
- /*
- * DRSP - DriveSpeed, version 3.10 (GPL FREEWARE)
- * Copyleft (l) Stanislav Sokolov, May 1998 and onwards.
- *
- * This program is subject to GNU General Public License ver. 2 of June 1991
- * and any later version.
- *
- * You may use this source with your programs, provided
- * due credits are given.
- *
- * Contact the author by e-mail: stanislavs@hotmail.com
- *
- * Internet: http://members.tripod.com/~stanislavs/prog/prog.htm
- */
-
- #include "D:\TC\MY\DRSP\DRSP.H"
-
-
- //A do-nothing replacement for a Ctrl-Break interrupt handler.
- void interrupt Brk(void){
- return;
- }
-
- #pragma warn -par
- //A fatal error handler which replaces the standard "Drive not found. Abort, Retry, Fail?"
- int FatalHandler(int errval, int ax, int bp, int si){
- int di_;
-
- asm mov di_, DI;
- HError = di_ & 0x00FF;
-
- hardresume(IGNORE);
-
- return ABORT;
- }
-
- //A routine that handles floating point errors.
- void Trap(int sType){
- fError = True;
- signal(SIGFPE, Trap);
- }
-
- #pragma warn +par
-