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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Received: by 2002:ac8:410f:: with SMTP id q15mr13748952qtl.192.1579386009108; Sat, 18 Jan 2020 14:20:09 -0800 (PST) X-Received: by 2002:a9d:74c4:: with SMTP id a4mr11151311otl.119.1579386008844; Sat, 18 Jan 2020 14:20:08 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no10680829qtd.0!news-out.google.com!w29ni1698qtc.0!nntp.google.com!g89no10680818qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 18 Jan 2020 14:20:08 -0800 (PST) In-Reply-To: <0001HW.23D35416021671CF70000511B2EF@news.individual.net> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=47.136.24.151; posting-account=o_Y23woAAACPYGlDsFV1OivhygPNSoRn NNTP-Posting-Host: 47.136.24.151 References: <4b0649b3-aed2-44fd-822f-d6665b9352dd@googlegroups.com> <0001HW.23D35416021671CF70000511B2EF@news.individual.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Creating several types from a base type and conversion From: Ken Roberts Injection-Date: Sat, 18 Jan 2020 22:20:09 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:57883 Date: 2020-01-18T14:20:08-08:00 List-Id: On Saturday, January 18, 2020 at 6:56:24 AM UTC-8, Bill Findlay wrote: > On 18 Jan 2020, Ken Roberts wrote > (in article<4b0649b3-aed2-44fd-822f-d6665b9352dd@googlegroups.com>): > > > The concept is emulating a 30-bit computer from olden days. > > > > It was my understanding that a boolean array would be better than an > > integer in order to do some of the bit manipulations that the old > > computer was designed for. > > Use the type: > > mod 2**30 > > which provides all the bit handling you need. > Override the arithmetic operations with your own 1's complement versions. > Roberto es su tio. > > For an Ada 2012 emulator of a 48-bit machine, see: > > > > -- > Bill Findlay Thanks for the link - will look into it.