🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #559

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

#559
From: John Levine
Date: Sat, 07 Nov 2026 02:36
30 lines
2588 bytes
According to Scott Lurndal <slp53@pacbell.net>:
>>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
>
>Was this mnemonic really DAC?  For the PDP-8, it was DCA
>(Deposit and Clear Accumulator).

I looked at the maual.  The load instruction was actually "lac",
load accumulator, the store instruction "dac" for deposit accumulator.  It also had
"dzm" deposit zero to memory. xor, and xct (execute.)

The PDP-5/8 had only half as manyinstructions so they came up with the
clever hack of having the two's complement TAD instruction, no load
instruction, but DCA stored and cleared so you could use a TAD to load
the next value.


-- 
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: <11cm2rn$if2$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> <6ae8eec0.35320218@news.eternal-september.org> <11cjh58$1flq$4@gal.iecc.com> <4mmHS.316761$_pxc.39330@fx17.iad>

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: Sat, 7 Nov 2026 02:36:39 -0000 (UTC)
Organization: Taughannock Networks
Message-ID: <11cm2rn$if2$1@gal.iecc.com>
References: <10uks4f$1dqo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org> <11cjh58$1flq$4@gal.iecc.com> <4mmHS.316761$_pxc.39330@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 7 Nov 2026 02:36:39 -0000 (UTC)
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970";
	logging-data="18914"; mail-complaints-to="abuse@iecc.com"
In-Reply-To: <10uks4f$1dqo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org> <11cjh58$1flq$4@gal.iecc.com> <4mmHS.316761$_pxc.39330@fx17.iad>
Cleverness: some
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: johnl@iecc.com (John Levine)