🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.arch
Article #595

Re: carry-in

#595
From: Waldek Hebisch
Date: Sun, 08 Nov 2026 18:52
57 lines
4073 bytes
Thomas Koenig <tkoenig@netcologne.de> wrote:
> Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:
>> Thomas Koenig <tkoenig@netcologne.de> writes:
>>>Anton Ertl <anton@mips.complang.tuwien.ac.at> schrieb:
>>>
>>>> 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
>>>> of the adder and put a wire from the link bit to the carry-in of that
>>>> full adder.  And given that it also has a ones-complement addition,
>>>> the lowest bit probaly already uses a full adder for the
>>>> end-around-carry (another reason would be that it may have a narrower
>>>> (maybe even 1-bit) adder that is used in multiple rounds for a
>>>> full-width addition, like the original Nova).
>>>
>>>The original Nova had a four-bit TI 7483 as an adder.
>>
>> And it needed four rounds through that adder for a full-width
>> addition.  That's what I meant.
> 
> I only recently learned that the Z80 also has a four-bit ALU, making
> two passes for an 8-bit addition.
> 
> I *had* wondered why the 6502 got similar performance at 1 MHz as
> the Z80 at 3 to 4.

1) Clock frequency is not everything.  6502 had 2 phase clock,
   giving it 4 synchronized transitions per clock, Z80 had one
   phase clock giving it 2 synchronized transitions.
2) Z80 included refresh functionality, so had to do fetch in
   2 clocks, while using 2 clock of M1 cycle for memory refresh.
   That means that its nominal memory bandwidth was lower than
   other processors using similarly clocked memory.
3) Z80 needed 4 clocks per fetch and 3 clocks for other memory
   accesses, 6502 was able to do memory access in each clock.
4) I think that 6502 instruction set was slightly better matched
   to usage at that time.  Namely, 6502 was oriented to operating
   on memory, while Z80 offered register operations.  Trouble was
   that with 8 bit for opcode and registers Z80 had to use
   accumulator for most operations.  So keeping data in registers
   gave small if any gain compared to using data from memory
   (both cases required move to accumulator, op and move back).
   Registers were useful for keeping addreses, but once more
   than 1 address was in use one needed extra instruction or
   prefixes (which increased time to fetch instructions).
   Comaratively 0 page addressing meant shorter instructions,
   I am not sure how much one gained due to addresing modes
   but probably comparably to Z80 registers.

To summarize, due to bus interface 1 MHz 6502 and about 3.5 MHz
Z80 had similar memory bandwidth, with Z80 needing faster
memory chips.  Probably on average 6502 instructions were
slightly shorter, but that presumably varied from application
to application.

-- 
                              Waldek Hebisch
Technical Details
Message-ID: <11cqge0$3h7vq$1@paganini.bofh.team>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
References: <10uks4f$1dqo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org> <11cjh58$1flq$4@gal.iecc.com> <2026Nov6.072410@mips.complang.tuwien.ac.at> <11cl9d6$464$1@gal.iecc.com> <2026Nov7.084134@mips.complang.tuwien.ac.at> <11cn4dv$3d6gj$1@dont-email.me> <2026Nov7.171914@mips.complang.tuwien.ac.at> <11cnq5j$3mb2u$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.bofh.team!paganini.bofh.team!not-for-mail
From: antispam@fricas.org (Waldek Hebisch)
Newsgroups: comp.arch
Subject: Re: carry-in
Date: Sun, 8 Nov 2026 18:52:50 -0000 (UTC)
Organization: bofh.team Usenet service
Message-ID: <11cqge0$3h7vq$1@paganini.bofh.team>
References: <10uks4f$1dqo$1@gal.iecc.com> <6ae8eec0.35320218@news.eternal-september.org> <11cjh58$1flq$4@gal.iecc.com> <2026Nov6.072410@mips.complang.tuwien.ac.at> <11cl9d6$464$1@gal.iecc.com> <2026Nov7.084134@mips.complang.tuwien.ac.at> <11cn4dv$3d6gj$1@dont-email.me> <2026Nov7.171914@mips.complang.tuwien.ac.at> <11cnq5j$3mb2u$1@dont-email.me>
Injection-Date: Sun, 8 Nov 2026 18:52:50 -0000 (UTC)
Injection-Info: paganini.bofh.team; logging-data="3710970"; mail-complaints-to="usenet@bofh.team"; posting-host="d028f9ad2fa2c51f22dbfed0d81d7daf"; posting-account="69e66f1681224ab92235b464ce7a90b6"
User-Agent: tin/2.6.2-20221225 ("Pittyvaich") (Linux/6.1.0-9-amd64 (x86_64))
X-Postfilter: Postfilter-NG 2026.10.2