🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: mod.computers.vax
Article #4064

RE: Large integer processing.

#4064
From: V112MZHF
Date: Fri, 03 Apr 1987 16:42
23 lines
1568 bytes
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
Technical Details
Message-ID: <8704040919.AA12633@ucbvax.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!lll-lcc!ames!ucbcad!ucbvax!UBVMS.BITNET!V112MZHF

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!seismo!lll-lcc!ames!ucbcad!ucbvax!UBVMS.BITNET!V112MZHF
From: V112MZHF@UBVMS.BITNET.UUCP
Newsgroups: mod.computers.vax
Subject: RE: Large integer processing.
Message-ID: <8704040919.AA12633@ucbvax.Berkeley.EDU>
Date: Fri, 3-Apr-87 11:42:00 EST
Article-I.D.: ucbvax.8704040919.AA12633
Posted: Fri Apr  3 11:42:00 1987
Date-Received: Sun, 5-Apr-87 10:09:08 EST
Sender: daemon@ucbvax.BERKELEY.EDU
Distribution: world
Organization: The ARPA Internet
Lines: 23
Approved: info-vax@sri-kl.arpa