🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #946

Re: Flags (Re: arithmetic and endian history)

#946
From: Anton Ertl
Date: Wed, 25 Nov 2026 10:46
33 lines
3021 bytes
Tim Rentsch <tr.17687@z991.linuxsc.com> writes:
>anton@mips.complang.tuwien.ac.at (Anton Ertl) writes:
>> I have the benefit of hindsight.  You also have that, but you imply
>> that the architects of the PDP-11, 6800, 6502, Z80 (the first
>> Datapoint 2200 descendent that also had an overflow flag) and 8086
>> (the first in that line from Intel with an overflow flag), 68000,
>> etc.  didn't know what they were doing when they selected NZCV instead
>> of following the example of S/360.
>
>I implied no such thing.  Those processors were designed under
>different circumstances and having very different constraints.

And in what way would these circumstances and constraints influence
the outcome?

It seems to me that the circumstances and constraints were not that
different.  The S/360 designers had to design an instruction set that
can be implemented with low hardware resources, just like the PDP-11
designers and the microprocessor designers.  And they used binary
representation and two's-complement representation of signed numbers,
like the others.

If they had seen the examples of the architectures mentioned before
designing the S/360, would they have designed the flag-handling of the
S/360 as they did?  I doubt it.  There is a reason why so many
architectures chose NZCV flags (if they chose flags at all).  And even
the few that don't use the NZCV flags do not handle flags in the S/360
way, not even Power.

- anton
-- 
'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
  Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
Technical Details
Message-ID: <2026Nov25.114615@mips.complang.tuwien.ac.at>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <10uks4f$1dqo$1@gal.iecc.com> <119en6p$qve$1@gal.iecc.com> <2026Sep29.100113@mips.complang.tuwien.ac.at> <1790702502-5857@newsgrouper.org> <119h6a0$fiu$1@gal.iecc.com> <2026Oct1.110046@mips.complang.tuwien.ac.at> <86tsn5pm2i.fsf@linuxsc.com> <2026Oct1.170516@mips.complang.tuwien.ac.at> <86zewxo0o7.fsf@linuxsc.com> <2026Oct1.184539@mips.complang.tuwien.ac.at> <868q2hlbzc.fsf@linuxsc.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Newsgroups: comp.arch
Subject: Re: Flags (Re: arithmetic and endian history)
Date: Wed, 25 Nov 2026 10:46:15 GMT
Organization: Institut fuer Computersprachen, Technische Universitaet Wien
Lines: 33
Message-ID: <2026Nov25.114615@mips.complang.tuwien.ac.at>
References: <10uks4f$1dqo$1@gal.iecc.com> <119en6p$qve$1@gal.iecc.com> <2026Sep29.100113@mips.complang.tuwien.ac.at> <1790702502-5857@newsgrouper.org> <119h6a0$fiu$1@gal.iecc.com> <2026Oct1.110046@mips.complang.tuwien.ac.at> <86tsn5pm2i.fsf@linuxsc.com> <2026Oct1.170516@mips.complang.tuwien.ac.at> <86zewxo0o7.fsf@linuxsc.com> <2026Oct1.184539@mips.complang.tuwien.ac.at> <868q2hlbzc.fsf@linuxsc.com>
Injection-Date: Wed, 25 Nov 2026 12:16:34 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3919198"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+2UMZtnC7t8PSn5UbArREn"; posting-host="59481ed96d0418bef989dc9aba7a2119"
Cancel-Lock: sha1:GrlSlEsVInAzM3hwaHn3UIUeFuE= sha256:NnUNz4WZOqro0ucd0L22mEcSRGER7Lyva732l4L8+ws=
	sha1:tPGv/Nd6L9j5DQ9pcnpvdyCWecU= sha256:YFA997BZmiFF33UTW1gWds7pqJp14JNReTCk219bCB8=
X-newsreader: xrn 10.11