home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / amiga / programm / 12288 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.8 KB

  1. Path: sparky!uunet!sun-barr!cs.utexas.edu!zaphod.mps.ohio-state.edu!ub!dsinc!bagate!cbmvax!cbmehq!cbmden!kehlet!kehlet
  2. From: kehlet@kehlet.adsp.sub.org (Jesper Kehlet)
  3. Newsgroups: adsp.sw,comp.sys.amiga.programmer
  4. Subject: Exception handler example
  5. Message-ID: <kehlet.065m@kehlet.adsp.sub.org>
  6. Date: 13 Aug 92 01:54:14 GMT
  7. Distribution: adsp,world
  8. Organization: Compos Mentis Software Systems
  9. Lines: 32
  10. X-NewsSoftware: GRn 1.16e (7/4/92) by Mike Schwartz & Michael B. Smith
  11.  
  12.  
  13. Somebody told us some time ago, that he wanted to do a utility that made it
  14. possible for 68010+/6888x programs to be run on a 68000.
  15.  
  16. It could be done via the exceptions 4 and 11, illegal instruction and
  17. LINE-F emulation.
  18.  
  19. In search of a good way to remove the exception handler again, I came up
  20. with the 4-character identification, that can be put in a long word.
  21.  
  22. I need some pros and cons, since I am now thinking of doing this other task
  23. myself, so decode it, look at the source and tell me what you think, i.e.
  24. your opinion.
  25.  
  26. If you are interested in just using it as-is, it sets up a division by zero
  27. exception handler for the purpose of trapping exception #5, which doesn't
  28. really have to break the system...
  29.  
  30. It is *NOT* mathematically correct, since simple math tells us, that it IS
  31. illegal, but I have reasoned with the fact, that the closer the denominator
  32. goes to zero, the higher the result of the division -- the numerator does
  33. really matter, except for going against zero from the positive or negative
  34. side -- I use the numerator to determine the sign of the operation.
  35.  
  36.  
  37. -- 
  38.      Jesper Kehlet, Compos Mentis Software Systems -- A Kind Of Magic
  39.  
  40.         (uunet|pyramid|rutgers)!cbmvax!cbmehq!cbmden!kehlet!kehlet
  41.              cbmehq!cbmden!kehlet!kehlet@cbmvax.commodore.com
  42.  
  43.   Since I am the president of this company, I speak not only for myself!
  44.