Xref: utzoo comp.lang.c++:2117 comp.lang.c:14371 comp.lang.forth:670 comp.lang.fortran:1535 comp.lang.misc:2198 comp.arch:7358
Path: utzoo!utgpu!watmath!clyde!att!rutgers!apple!desnoyer
From: desnoyer@Apple.COM (Peter Desnoyers)
Newsgroups: comp.lang.c++,comp.lang.c,comp.lang.forth,comp.lang.fortran,comp.lang.misc,comp.arch
Subject: Re: Assembly or ....
Message-ID: <21390@apple.Apple.COM>
Date: 29 Nov 88 17:13:35 GMT
References: <1388@aucs.UUCP> <729@convex.UUCP> <1961@crete.cs.glasgow.ac.uk> <8993@smoke.BRL.MIL> <1032@l.cc.purdue.edu>
Organization: Apple Computer Inc, Cupertino, CA
Lines: 15

In article <1032@l.cc.purdue.edu> cik@l.cc.purdue.edu (Herman Rubin) writes:
>
> For example, 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.  

I can't think of a machine that doesn't. The only machine language
manuals on my desk (68000 and HPC16083) show this instruction.
If anyone knows of a machine that doesn't leave the remainder in
a register, I would be interested in knowing of it. Such a machine
either throws the remainder away or uses some algorithm besides
shift-and-subtract. (for instance hard-wired.)

				Peter Desnoyers