On Thu, 2011-12-01 at 12:51 +0200, Oleg Goldshmidt wrote:
> IIRC, all x86 processors
> provided BCD-related instructions (conversions to and from), but I
> think even then it was slower than straightforward binary arithmetic.
> It was slow because the machine instructions were for single bytes
> only, but not for wider objects. I do not remember if it was in any
> way related to 8087 math co-processors.

The 8086 had several instructions for adjusting results of arithmetic
operations to conform to BCD values.
The 8087 had the FBLD and FBSTP for loading and storing BCD values.

--- Omer


-- 
My Commodore 64 is suffering from slowness and insufficiency of memory;
and its display device is grievously short of pixels.  Can anyone help?
My own blog is at http://www.zak.co.il/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


_______________________________________________
Linux-il mailing list
Linux-il@cs.huji.ac.il
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il

Reply via email to