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,FREEMAIL_FROM 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 08:43:05 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!uunet!dca.uu.net!ash.uu.net!spool0900.news.uu.net!reader0900.news.uu.net!not-for-mail Date: Wed, 24 Jul 2002 11:43:03 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.1b) Gecko/20020721 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Floating Decimal Package/Library? References: <3D345DB3.5080609@cogeco.ca> <3D3571E4.6060503@cogeco.ca> <3D3C963D.5020304@attbi.com> <3D3EC569.613EE332@san.rr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1027525383.829953@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@fixedcost.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1027525384 reader0.ash.ops.us.uu.net 23889 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:27364 Date: 2002-07-24T11:43:03-04:00 List-Id: Darren New wrote: > 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. The 80x86 processors also have decimal instructions. AA[ASMD] adjust after unpacked decimal operations. DA[AS] adjust after packed decimal operations.