Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!pyramid!nsc!csi!jwhitnel From: jwhitnel@csi.UUCP (Jerry Whitnell) Newsgroups: comp.sys.mac.programmer Subject: Re: (Very) Long Multiplies Message-ID: <1453@csib.csi.UUCP> Date: 18 Mar 88 19:37:59 GMT References: <11318@duke.cs.duke.edu> Reply-To: jwhitnel@csib.UUCP (Jerry Whitnell) Organization: Communications Solutions Inc., San Jose, Ca Lines: 31 Keywords: 32 * 32 bit multiply on 68020? In article <11318@duke.cs.duke.edu> gleicher@duke.cs.duke.edu (Michael Gleicher) writes: >Is there a neat way of doing this? >Does the 68020 have a 32 bit multiply that produces a 64 bit > result? Yes it does. >if so, how can i put it into a lightspeed C program? You pull out your handy-dandy 68020 manual, hand-assemble it and write the machine code into your program. No :-), I had to do this. LSC doesn't support (in version 2.15) 68020 assembly code, I think 3.0 will however. So, for example, if the long multiply assembles to 0x1234 0x5678 (it doesn't) you can add asm { 0x1234 ; First word of mul long 0x5678 ; second word of mul long } and LSC will insert the above words into your code. > >Thanks, > >Mike > >Michael Lee Gleicher (-: If it looks like I'm wandering > Duke University (-: around like I'm lost . . . >E-Mail: gleicher@cs.duke.edu)(or uucp (-: >Or P.O.B. 5899 D.S., Durham, NC 27706 (-: It's because I am! Jerry Whitnell Been through Hell? Communication Solutions, Inc. What did you bring back for me? - A. Brilliant