home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
255.lha
/
DivideZero
/
read.me
< prev
next >
Wrap
Text File
|
1989-06-07
|
859b
|
14 lines
;Divide by zero cpu exeption trap
;cpu exeption 5 ,will cause a Guru 00000005.xxxxxxxx
;Div by zero error will come up when the cpu uses Divs,Divu if the
;denominator is so small that the cpu rounds it to zero,if it is
;smaller then a word because Divs,Divu only uses words.
;this little bit of code stops guru 5 and sets the answer to Div by zero
;to computer infinity i.e. for Divs $FFF and for Divu $FFFF. you may say
;why do this, well if the number in the denominator is so small anyway then
;the answer to the division will be very large so we set the answer to
;infinity,and go on. in almost all cases the program that caused the div by
;zero will work just fine with the answer at infinity.
;to use this program just put Divzero in your startup-sequence
;it will do the work of traping the exception 5 and stopping guru