🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #25284

48 bit by 32 bit divide

#25284
From: Doug Schmidt
Date: Sat, 20 Feb 1988 01:09
25 lines
1423 bytes
Can someone mail me a little chunk of 68000 assembly code that will divide
a 48-bit signed integer by a 32-bit signed integer?  I need it for some fast
math calculations in a C program I'm working on.  (My C compiler comes with
an assembler).  Any books that I have been able to find only give examples
of 32 by 32 bit division, but I haven't been able to successfully extend their
algorithms to 48 bits.

I know that this is pretty simple, but then again, so am I. :-)

The math that I need to do is fixed point math, but I am using an old 512K Mac 
with the old 64K ROMS.  These ROMS don't have the fixed-point division routine 
that the newer 128K and 256K ROMS do.  So if anyone can dis-assemble their new 
ROMS, I could use that code.

		Thanx in advance,

			Doug Schmidt
			Microtel Pacific Research
			Burnaby, BC		CANADA


PS.	Remember when they called 512K Macs "Fat"?  Now they're "Anorexic". :-)


DISCLAIMER:  I'd rather have a bottle in front of me than a frontal lobotomy.
Technical Details
Message-ID: <1382@mpre.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ucla-cs!cit-vax!elroy!ames!ll-xn!mit-eddie!uw-beaver!ubc-vision!mpre!schmidt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!rutgers!ucla-cs!cit-vax!elroy!ames!ll-xn!mit-eddie!uw-beaver!ubc-vision!mpre!schmidt
From: schmidt@mpre.UUCP (Doug Schmidt)
Newsgroups: comp.sys.mac
Subject: 48 bit by 32 bit divide
Keywords: 68000 division
Message-ID: <1382@mpre.UUCP>
Date: 20 Feb 88 01:09:35 GMT
Distribution: na
Organization: Microtel Pacific Research Ltd., Burnaby, B.C., Canada
Lines: 24