[mod.computers.vax] Large integer processing.

V112MZHF@UBVMS.BITNET.UUCP (04/03/87)

Mr. Reynolds,

        I have written a package similar to the one you requested.
Unfortunately I can no longer locate the source. It was a Pascal
program with imbedded assembly language code. The basic premise is
simple...

1. Read in the numbers as character data.
2. Treat each character according to which column it is in, just as
   deals with tens, hundreds, and thousands, etc.
3. In MACRO, strip the ASCII bits from the word and deal only
   with the two characters in the same columns. Don't forget to
   handle carry conditions.
4. Reset the ASCII bits and send the resulting character back to the
   calling program. Keep a flag for the carry-over to the next operation
   (9+9=18, '8' is sent back plus flag to add an extra '1' to the next
    addition).

Through the use of arrays, virtually any size integer can be worked with.

                                                Stephen Kent Jones

BITNET: V112MZHF@UBVMS