Assembly or ....
Jeff MacDonald
jmacdon at cg-atla.UUCP
Thu Dec 1 01:26:53 AEST 1988
In article <1032 at l.cc.purdue.edu> cik at 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
More information about the Comp.lang.c
mailing list