From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.8 required=3.0 tests=BAYES_50,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:291:: with SMTP id z17mr2578878qtw.138.1637014188866; Mon, 15 Nov 2021 14:09:48 -0800 (PST) X-Received: by 2002:a5b:846:: with SMTP id v6mr2479636ybq.457.1637014188615; Mon, 15 Nov 2021 14:09:48 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 15 Nov 2021 14:09:48 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=47.34.247.166; posting-account=o_Y23woAAACPYGlDsFV1OivhygPNSoRn NNTP-Posting-Host: 47.34.247.166 References: <49db08e4-4380-4877-9e50-a986856c9821n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <09d82d22-aca1-4ff9-9e2a-33a180544f88n@googlegroups.com> Subject: Re: Integer_IO or Modular_IO with different base as default From: Ken Roberts Injection-Date: Mon, 15 Nov 2021 22:09:48 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:63121 List-Id: On Monday, November 15, 2021 at 1:40:34 PM UTC-8, Simon Wright wrote: < snip > I was going to add before your reply that I'm trying to get output without the extra padding of showing the base. I would rather not have to send the output to a subroutine that would strip the extra characters out or write a new routine to convert the decimal to octal before printing. It's more in keeping with the system design of the original digital equipment as well as the documentation that As an example, the format as documented for the equipment: Data word: DDDDD DDDDD (30-bit word in octal data format) Instruction word: FF J K B DDDDD (30-bit word in octal instruction 1 format) Instruction word: FF JJ K B DDDDD (30-bit word in octal instruction 2 format) All of the documentation is written in those formats, and having 8X..X surrounding each field really sucks on the output when trying to evaluate between original documentation and the program output.