Xref: utzoo comp.lang.c++:2144 comp.lang.c:14420 comp.lang.forth:690 comp.lang.fortran:1557 comp.lang.misc:2230 comp.arch:7388 Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ulowell!cg-atla!jmacdon From: jmacdon@cg-atla.UUCP (Jeff MacDonald) Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.forth,comp.lang.fortran,comp.lang.misc,comp.arch Subject: Re: Assembly or .... Message-ID: <6171@cg-atla.UUCP> Date: 30 Nov 88 15:26:53 GMT References: <1388@aucs.UUCP| <729@convex.UUCP> <1961@crete.cs.glasgow.ac.uk> <8993@smoke.BRL.MIL> <1032@l.cc.purdue.edu> <8938@winchester.mips.COM> <949@taux01.UUCP> Reply-To: jmacdon@cg-atla.UUCP (Jeff MacDonald) Organization: Compugraphic Corp. Wilmington, MA Lines: 17 In article <1032@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes: ... > suppose we want to >divide a by b, obtaining an integer result i and a remainder c. I know >of no machine with this instruction, and this is not that unusual an >instruction to demand. It is cheap in hardware, and extremely expensive >in software--at least 4 instructions. Both the 80x86 and 680x0 machines have integer divide instructions which leave quotient and remainder. So there. Think we've beat Herman up enough? -- Jeff MacDonald ((decvax||ulowell)!cg-atla!jmacdon) c/o Compugraphic Corporation 200-3-5F 200 Ballardvale, Wilmington, MA 01887 (508) 658-0200, extension 5406