home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.m68k
- Path: sparky!uunet!noc.near.net!mv!world!squeegee
- From: squeegee@world.std.com (Stephen C. Gilardi)
- Subject: 64-bit multiply and divide on 68000
- Message-ID: <By3nLJ.6H5@world.std.com>
- Summary: Need 64-bit division 68000 assembly code, similar to DIVU.L on 68020
- Keywords: Assembler 68000 discrete math
- Organization: SQ Software via The World Public Access UNIX, Brookline, MA
- Date: Sun, 22 Nov 1992 04:10:30 GMT
- Lines: 22
-
- I need to calculate a linear interpolation rapidly. The equation is
-
- y = x * numer / denom,
-
- where y, numer, and denom are 32-bit unsigned longs and x is a 16-bit
- unsigned short.
-
- On the 68020, I can use the built-in "long" multiply and divide instructions.
- However on the 68000 it's more involved.
-
- I found 68000 code in a book to do the 64-bit unsigned multiply. I'd
- like to have the divide in assembly language as well.
-
- Does anyone have such a routine, or a reference to where I can find one?
-
- Thanks,
- --Steve
-
- Stephen C. Gilardi
- SQ Software
- squeegee@world.std.com
-
-