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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8ce0b4db34f42ba9 X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: ada help please Date: 1999/01/26 Message-ID: <36ad2d46.24886495@news.pacbell.net>#1/1 X-Deja-AN: 436942392 References: <36ab9c3f.2963059@news.ptd.net> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.pbi.net 917319186 207.214.211.133 (Mon, 25 Jan 1999 18:53:06 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Mon, 25 Jan 1999 18:53:06 PDT Newsgroups: comp.lang.ada Date: 1999-01-26T00:00:00+00:00 List-Id: >you cant add two characters and you cant typecast them to integers, so >how >do u get the result of the sums into Z? The old IBM 1620 did this with an addition table. ie, make two, two-dimensional arrays (one for "with carry", one without) indexed by the characters '0' .. '9' to give the sum character. Initialize these constant arrays yourself from any 1st grade arithmetic text. You'll also need similar arrays of Boolean to tell if you should generate a carry. Just one approach. ;)