home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15454 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.4 KB

  1. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!cc-server4.massey.ac.nz!acmebbs!dogbox!dave
  2. From: dave@dogbox.acme.gen.nz (David Dustin)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 64bit / 32 bit = 32 bit code for 68000 
  5. Message-ID: <B0aTTB1w165w@dogbox.acme.gen.nz>
  6. Date: Fri, 06 Nov 92 22:06:22 +1300
  7. References: <monster.05lw@mbear.apana.org.au>
  8. Organization: The Dawghaus BBS, Palmerston North, New Zealand (+64 6 357 9245)
  9. Lines: 22
  10.  
  11. monster@mbear.apana.org.au (Martin Ozolins) writes:
  12.  
  13. > Could someone EMail me some examples of how to do
  14. > 64 bit / 32bit = 32bit Divide code for assembler for a 68000 processor.
  15. > I need it so that I can write my program to run on either a 680x0 or 68000 sy
  16. > I already have a 32 * 32 = 64 bit Mul routine so I only need the above.
  17.  
  18. Why don't you do what I did.  Wrote a routine which made use of a 2.x 
  19. functions (in your case, there is a call in the utility.library), and 
  20. then Run it through a De-bugger. :)
  21.  
  22. That way, you can make a dump of the ROM call, and this write your own 
  23. one, so your programs can work on earlier machines.  Mine checks to see 
  24. if the system is 2.04+ and if so, it uses the ROM version, otherwise it 
  25. uses the routine that I have included in my program.
  26.  
  27.                                                                  :)ave
  28.  
  29. --
  30. David Dustin             |  "Nice jail.  Looks strong."
  31. Dave@Dogbox.acme.gen.nz  |                               - H. Houdini
  32.