🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #513

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

#513
From: John Savard
Date: Mon, 02 Nov 2026 20:25
61 lines
4034 bytes
On Mon, 2 Nov 2026 18:43:11 -0000 (UTC), John Levine <johnl@taugh.com>
wrote:
>According to Stephen Fuld  <sfuld@alumni.cmu.edu.invalid>:

>>Of course, the paper doesn't explain why the requirement for symmetry 
>>seemed to go away and two's complement became acceptable.

>My guess is that for fixed point arithmetic, experience told people
>that having to account for two versions of zero was a pain, while the
>fact that the largest negative number had no positive representation
>didn't matter.

I think that's certainly _part_ of it.

DEC made the LINC, which was a one's complement machine... or, rather,
it made kits with which researchers could make their own LINC
computers.

Later on, they made the PDP-5, largely for process control, which was
two's complement.

Later, this caused some extra complexity when they made the LINC-8 and
its successor the PDP-12, which combined their PDP-8 (almost
compatible with the PDP-5) and the LINC in one box.

They also made an 18-bit computer, the PDP-4 (which had compatible
successors in the PDP-9 and PDP-15) which had a set of one's
complement instructions and an additional set of two's complement
instructions. I guess that let those machines act as bridges between
hardware which was either one way or the other.

That case illustrates what a mess this was for a while. Most other
makers chose to go either one way or the other.

IBM went with sign-magnitude on the IBM 704 and its successors.
Although the index registers, which presumably didn't matter as much,
were two's complement.

The IBM System/360, though, was sign-magnitude for floating point
(like nearly everyone else) but two's complement for binary integers.
(Decimal integers were sign-magnitude still.)

In my opinion, it was the decision by IBM to make the switch which
legitimized sign-magnitude. Just as DEC switched from making 18-bit,
36-bit, and 12-bit computers to the 16-bit PDP-11 after the System/360
(and the PDP-11 also had general registers) IBM, being the biggest
computer company, was hugely influential.

People designing computers tended to copy whatever IBM did. After the
IBM 704, computers from a whole bunch of manufacturers looked like the
IBM 704 in many ways. Some of those ways aren't just IBM influence;
using six-bit characters because only upper-case printing was needed
for a computer was just a result of the technology of the day. As
costs came down, and as IBM went to the eight-bit byte mostly because
packed decimal four-bit digits fit in it efficiently, people started
considering letting computers use lower-case.

So once IBM used two's complement, and the roof didn't fall in, people
woke up and realized that one's complement was a waste of time.

John Savard
Technical Details
Message-ID: <6ae8eec0.35320218@news.eternal-september.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: quadibloc@invalid.com (John Savard)
Newsgroups: comp.arch
Subject: Re: two's complement and Flags (Re: arithmetic and endian history)
Date: Mon, 02 Nov 2026 20:25:11 GMT
Organization: A noiseless patient Spider
Lines: 61
Message-ID: <6ae8eec0.35320218@news.eternal-september.org>
References: <10uks4f$1dqo$1@gal.iecc.com> <2026Oct3.191827@mips.complang.tuwien.ac.at> <1791071365-5857@newsgrouper.org> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com>
Injection-Date: Mon, 02 Nov 2026 20:25:17 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3368708"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18c2FRfRkpK5JfuFpGY94rSf5DW1EOZRk4="; posting-host="21f503f0c0df7980e23d66f98af2726f"
Cancel-Lock: sha1:RJdbHa8s5WjXHtULyZPjk3YIb1k= sha256:wwMuQHjUvzZm3pIS64DC9ncULf6LVmgWyWiN/W2ExwA=
	sha1:W/MZeRjrNdiPX6QW3C2TTd1qJcI= sha256:lSzV5KnejnDq7yOrzuzA9qTvS2jDLfa70ZHO4vBVpL8=
X-Newsreader: Forte Free Agent 1.1/32.230