🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #570

Re: carry-in (was: two's complement and Flags)

#570
From: John Levine
Date: Sat, 07 Nov 2026 18:44
48 lines
3509 bytes
According to Anton Ertl <anton@mips.complang.tuwien.ac.at>:
>John Levine <johnl@taugh.com> writes:
>>It appears that Anton Ertl <anton@mips.complang.tuwien.ac.at> said:
>[PDP-4]
>>>That's good enough for double-precision integer arithmetic, but for
>>>multiple-precision integers, an add with carry-in and carry-out is
>>>needed.  The first sequence only does carry-out, the second only
>>>carry-in; the second produces a carry, but it does not reflect a
>>>possible carry-out of the IAC.
>>
>>Keep in mind that this computer was designed in 1962, built out of
>>individual transistors soldered onto PC cards, and had 1K, 4K, or 8K
>>18 bit words of core memory. Of course more modern instruction sets are
>>better.
>
>I don't think it has anything to do with the materials from which it
>was built.  Turning TAD into TADC (with carry-in) would only have
>require to use a full adder instead of a half-adder for the lowest bit ...

Sure, but that would have needed another opcode, and all 16 of the
available opcodes were taken.  Once again, in retrospect this was
rather primitive, but it did show that they understood that two's
complement made multiple precision easier.  Given that the PDP-5
only had two's complement they presumably figured that whatever
disadvantage it might have compared to one's complement wasn't
very important.

>S/360 does not have an add with carry-in, either, and IIRC it took
>until S390 (or S390x?) for them to add it, while microprocessors,
>having learned the lesson with the 8-bit architectures, usually
>included add with carry-in and carry-out from the start (with the
>notable exceptions of MIPS and its descendants).

It was S390x, 390 mode on z.  Waving my hands a lot, I would guess
that it was rare to need more than 64 bit integer arithmetic so
the original AL was good enough.  Then z made 64 bits the basic
type so they retroactively gave s390 add with carry so it could
handle larger (128 probably) more efficiently.

Eight bit micros always needed carry in and out because 16 bits
is rarely enough.



-- 
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: <11cnrin$2bip$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> <2026Nov6.072410@mips.complang.tuwien.ac.at> <11cl9d6$464$1@gal.iecc.com> <2026Nov7.084134@mips.complang.tuwien.ac.at>

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: carry-in (was: two's complement and Flags)
Date: Sat, 7 Nov 2026 18:44:39 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <11cnrin$2bip$1@gal.iecc.com>
References: <10uks4f$1dqo$1@gal.iecc.com> <2026Nov6.072410@mips.complang.tuwien.ac.at> <11cl9d6$464$1@gal.iecc.com> <2026Nov7.084134@mips.complang.tuwien.ac.at>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 7 Nov 2026 18:44:39 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
	logging-data="77401"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <10uks4f$1dqo$1@gal.iecc.com> <2026Nov6.072410@mips.complang.tuwien.ac.at> <11cl9d6$464$1@gal.iecc.com> <2026Nov7.084134@mips.complang.tuwien.ac.at>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)