šŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #2104

Re: [OT] Dead DEC Punch card times (was Re: Taking Speedy too seriously)

#2104
From: Peter Flass
Date: Fri, 06 Nov 2026 14:41
46 lines
4163 bytes
On 11/6/26 01:46, Richard Kettlewell wrote:
> Lawrence D’Oliveiro <ldo@nz.invalid> writes:
>> Carlos E. R. wrote:
>>> The 68000 had a beautiful assembler. Or rather, a beautiful
>>> instruction set.
>>
>> Definitely inspired by the PDP-11. Pity it was big-endian. Also, the
>> division into ā€œaddressā€ versus ā€œdataā€ registers did seem to be a step
>> backwards.
>>
>> Here’s one trivia question: the decrement-and-branch instruction would
>> fall out of the loop when the count reached -1, not 0 as the
>> equivalent instruction in nearly every other computer architecture
>> did. Why?
> 
> At the surface level, because DBcc is a rather bizarrely shaped
> instruction, with the condition code applying to the whole instruction
> rather; operating with inverse sense; and branching unless the decrement
> results in a value of -1 (i.e. 0xFFFF). So there’s _two_ conditional
> steps (unless the condition is a constant, e.g. the common use of
> DBF). Page 4-90 in the PRM[1] shows the definition.
> 
> So there’s several things to explain. I don’t have access to the
> thinking of the designers, but I think the following are plausible
> explanations:
> 
> 1) The whole-instruction conditionality allows for early exits from
>     loops (depending of course how they are structured). So you get two
>     checks for a single instruction.
> 
> 2) Using 0xFFFF for the sentinel value comes, microarchitecturally, ā€˜for
>     free’ because it just means checking the carry out from the
>     decrement, which is 1 in precisely the situation where the decrement
>     reaches -1. Using 0 as the sentintel would mean testing the whole
>     result value.
> 
> 3) The inverse sense of the conditional. The PRM explains this one in
>     terms of ā€˜UNTIL’ loops, which were perhaps more popular in the
>     programming languages of the time than they are today.
> 
> [1] https://www.nxp.com/docs/en/reference-manual/M68000PRM.pdf
> 


As I recall for the IBM 1130 conditional branch instruction you have to 
code for which conditions the branch is NOT to be taken.
Technical Details
Message-ID: <11ckott$2jqjg$1@dont-email.me>
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: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com> <ayudnc43iJgfVXr3nZ2dnZfqn_adnZ2d@giganews.com> <11c8mg3$2e89e$2@kst.eternal-september.org> <_ZucnafJTvBFc3r3nZ2dnZfqnPGdnZ2d@giganews.com> <11c8rq9$1e6t$1@gal.iecc.com> <nkqj0vFftq4U8@mid.individual.net> <URVFS.20180$1WK1.4115@fx14.ams4> <nkqpvsFftq4U9@mid.individual.net> <%Y_FS.30812$Gsmc.9148@fx17.ams4> <nks7oaF2rmsU2@mid.individual.net> <20261103155316.609@kylheku.com> <BRedndRyj8uMNnf3nZ2dnZfqnPSdnZ2d@giganews.com> <20261105095148.000026b0@gmail.com> <nl42ntF2rmsU25@mid.individual.net> <20261105121255.00003b4b@gmail.com> <1j6dnU7499aecXH3nZ2dnZfqn_WdnZ2d@giganews.com> <11cirsg$1votj$9@dont-email.me> <nl4afqFaf1bU7@mid.individual.net> <11cj2r4$22bch$7@dont-email.me> <wwvmrrmmjoe.fsf@LkoBDZeT.terraraq.uk>

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: Peter Flass <Peter@Iron-Spring.com>
Newsgroups: comp.os.linux.misc,alt.folklore.computers
Subject: Re: [OT] Dead DEC Punch card times (was Re: Taking Speedy too
 seriously)
Date: Fri, 6 Nov 2026 07:41:01 -0700
Organization: A noiseless patient Spider
Lines: 46
Message-ID: <11ckott$2jqjg$1@dont-email.me>
References: <18dee4b6cab427fa$865$2574533$802601b3@news.usenetexpress.com>
 <ayudnc43iJgfVXr3nZ2dnZfqn_adnZ2d@giganews.com>
 <11c8mg3$2e89e$2@kst.eternal-september.org>
 <_ZucnafJTvBFc3r3nZ2dnZfqnPGdnZ2d@giganews.com> <11c8rq9$1e6t$1@gal.iecc.com>
 <nkqj0vFftq4U8@mid.individual.net> <URVFS.20180$1WK1.4115@fx14.ams4>
 <nkqpvsFftq4U9@mid.individual.net> <%Y_FS.30812$Gsmc.9148@fx17.ams4>
 <nks7oaF2rmsU2@mid.individual.net> <20261103155316.609@kylheku.com>
 <BRedndRyj8uMNnf3nZ2dnZfqnPSdnZ2d@giganews.com>
 <20261105095148.000026b0@gmail.com> <nl42ntF2rmsU25@mid.individual.net>
 <20261105121255.00003b4b@gmail.com>
 <1j6dnU7499aecXH3nZ2dnZfqn_WdnZ2d@giganews.com>
 <11cirsg$1votj$9@dont-email.me> <nl4afqFaf1bU7@mid.individual.net>
 <11cj2r4$22bch$7@dont-email.me> <wwvmrrmmjoe.fsf@LkoBDZeT.terraraq.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 06 Nov 2026 14:41:02 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2746992"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+ibf9DFB3bAOL1dlxg4i8k"; posting-host="81a2cf52ae39f53c2e2a541af18f83a7"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:WuFsjIwYZDUjEl/4Y1WWnBVh8bI= sha256:ZLl8G86uvu1Vh9y3mnDUbsqpY8mnsEhLzMV47k6802A=
	sha1:PkypNzm6VfFJ8UC7mrDm4fKfo7M= sha256:UlWBZSmg+rNkVQr+JrsuHiDs+15WOC5W2TgGV+kaAMA=
Content-Language: en-US
In-Reply-To: <wwvmrrmmjoe.fsf@LkoBDZeT.terraraq.uk>