Article View: comp.arch
Article #548Re: two's complement and Flags (Re: arithmetic and endian history)
From: John Levine
Date: Fri, 06 Nov 2026 03:22
Date: Fri, 06 Nov 2026 03:22
31 lines
2503 bytes
2503 bytes
According to John Savard <quadibloc@invalid.com>: >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. The DEC Computer Engineering book says that the PDP-4 was designd to be a lower cost PDP-1, 5/8 of the performance for half the cost. They added two's complement arithmetic because the users wanted to do multiple precision and floating point arithmetic with more than 18 bits which is a lot easier to do in two's complement. It also added a "link" bit to hold the carry out of the accumulator, and instructions to test it so you could do something like this for a two word addition CLA A / low part TAD B / carry is in the link bit DAC C CLA A+1 / high part SZL / skip on zero link IAC / add 1 to AC if there was a carry TAD B+1 DAC C+1 The PDP-5 and -8 also had a link bit. -- 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:
<11cjh58$1flq$4@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-mailReferences:
<10uks4f$1dqo$1@gal.iecc.com> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org>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: Fri, 6 Nov 2026 03:22:16 -0000 (UTC) Organization: Taughannock Networks Message-ID: <11cjh58$1flq$4@gal.iecc.com> References: <10uks4f$1dqo$1@gal.iecc.com> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 6 Nov 2026 03:22:16 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="48826"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <10uks4f$1dqo$1@gal.iecc.com> <11cai8f$32ue7$1@dont-email.me> <11caljv$jeo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine)