From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7cda96e9413b780c X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-07-24 09:16:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.nacamar.de!newsfeed.vmunix.org!news.telebyte.nl!news.nl.linux.org!humbolt.nl.linux.org!transit.news.xs4all.nl!not-for-mail From: Fraser Wilson Newsgroups: comp.lang.ada Subject: Re: Floating Decimal Package/Library? Date: 24 Jul 2002 18:17:56 +0200 Organization: XS4ALL Internet BV Sender: fwilson@FWILSON Message-ID: References: <3D345DB3.5080609@cogeco.ca> <3D3571E4.6060503@cogeco.ca> <3D3C963D.5020304@attbi.com> <3D3EC569.613EE332@san.rr.com> NNTP-Posting-Host: a80-126-24-12.adsl.xs4all.nl X-Trace: news1.xs4all.nl 1027527368 9224 80.126.24.12 (24 Jul 2002 16:16:08 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 24 Jul 2002 16:16:08 GMT X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:27365 Date: 2002-07-24T16:16:08+00:00 List-Id: Darren New writes: > The 6502 let you add two BCD digits using a binary add, then had an > instruction (adjust decimal?) that would look at the half-carry flag and > convert it back to BCD with the appropriate carry bit set. That's the 8086 I think. The 6502 has a decimal flag in the status word that, when set, causes all add and subtract instructions to treat their arguments as the BCD you mentioned. What an odd feature for a tiny little processor. Fraser.