home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 255.lha / DivideZero / read.me < prev    next >
Text File  |  1989-06-07  |  859b  |  14 lines

  1.   ;Divide by zero cpu exeption trap
  2.   ;cpu exeption 5 ,will cause a Guru 00000005.xxxxxxxx
  3.   ;Div by zero error will come up when the cpu uses Divs,Divu if the 
  4.   ;denominator is so small that the cpu rounds it to zero,if it is
  5.   ;smaller then a word because Divs,Divu only uses words.
  6.   ;this little bit of code stops guru 5 and sets the answer to Div by zero
  7.   ;to computer infinity i.e. for Divs $FFF and for Divu $FFFF. you may say 
  8.   ;why do this, well if the number in the denominator is so small anyway then 
  9.   ;the answer to the division will be very large so we set the answer to
  10.   ;infinity,and go on. in almost all cases the program that caused the div by
  11.   ;zero will work just fine with the answer at infinity.  
  12.   ;to use this program just put Divzero in your startup-sequence
  13.   ;it will do the work of traping the exception 5 and stopping guru
  14.