🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #59

Re: two's complement and Flags (Re: arithmetic and endian history)

#59
From: John Levine
Date: Mon, 12 Oct 2026 17:37
28 lines
2434 bytes
According to Tim Rentsch  <tr.17687@z991.linuxsc.com>:
>>> I think this proposed explanation is consistent with the example
>>> given on page 10 (which doesn't talk about looping) and with the
>>> description of the "Transfer on Index" instruction give on page 25
>>> (which clearly is meant to be used with looping). ...
>>
>> That's certainly one of the more common guesses people have made.
>> On the other hand, the TIX instruction adds its decrement field
>> to an index register, but since the decrement is the same size as
>> the index, if you want to count down you just make the decrement
>> two's comp -1. [...]
>
>Did you misread the description of the TIX instruction?

Oh, whoops, I confused it with TXI.

Either way, the fact that Fortran stored its arrays backwards
suggests that whatever they had in mind turned out not to be useful.

I sure wish SOMEONE had written down what the motivation was.  The
mixture of sign-magnitude arithmetic in most places and two's
complement subtraction for indexing is quite peculiar.


-- 
Regards,
John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies",
Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID: <11aj5su$29p$1@gal.iecc.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
References: <10uks4f$1dqo$1@gal.iecc.com> <865wzfm8ph.fsf@linuxsc.com> <11a3at4$17uu$1@gal.iecc.com> <86qzhvi9vn.fsf@linuxsc.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail
From: John Levine <johnl@taugh.com>
Newsgroups: comp.arch
Subject: Re: two's complement and Flags (Re: arithmetic and endian history)
Date: Mon, 12 Oct 2026 17:37:34 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <11aj5su$29p$1@gal.iecc.com>
References: <10uks4f$1dqo$1@gal.iecc.com> <865wzfm8ph.fsf@linuxsc.com> <11a3at4$17uu$1@gal.iecc.com> <86qzhvi9vn.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 12 Oct 2026 17:37:34 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
	logging-data="2361"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <10uks4f$1dqo$1@gal.iecc.com> <865wzfm8ph.fsf@linuxsc.com> <11a3at4$17uu$1@gal.iecc.com> <86qzhvi9vn.fsf@linuxsc.com>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)