• Re: carry-in

    From antispam@antispam@fricas.org (Waldek Hebisch) to comp.arch on Thu Nov 26 01:52:19 2026
    From Newsgroup: comp.arch

    John Savard <quadibloc@invalid.com> wrote:
    On Sat, 07 Nov 2026 07:41:34 GMT, anton@mips.complang.tuwien.ac.at
    (Anton Ertl) wrote:

    The 6502 was also designed to be extremely cheap, and it was designed
    to be so cheap that it does not even support 16-bit-wide ALU
    operations despite having 16-bit addresses, but it does include
    carry-in.

    IIRC, the 6809 and the Z-80 had a 16-bit add instruction - but the
    8080

    8080 has DAD B, DAD D, DAD H and DAD SP which add register pairs
    with result in HL. There is also DCX B and similar (which decrement
    register pair). It does not handle carry, and does not have
    general 16 bit subtraction.

    and the 6800 did not. So not having one was not a consequence of
    how cheap the 6502 was designed to be, although it definitely was
    designed to be much cheaper than the 8080 and 6800.

    I am not sure about "much". 6502 looks simpler than 8080, but
    not much simpler. IIUC in not so long time prices of Z80 (which
    is sigmificantly more complex than 8080) and 6502 got very
    similar.
    --
    Waldek Hebisch
    --- Synchronet 3.21e-Linux NewsLink 1.2
  • From anton@anton@mips.complang.tuwien.ac.at (Anton Ertl) to comp.arch on Thu Nov 26 07:40:51 2026
    From Newsgroup: comp.arch

    antispam@fricas.org (Waldek Hebisch) writes:
    John Savard <quadibloc@invalid.com> wrote:
    On Sat, 07 Nov 2026 07:41:34 GMT, anton@mips.complang.tuwien.ac.at
    (Anton Ertl) wrote:
    So not having one was not a consequence of
    how cheap the 6502 was designed to be, although it definitely was
    designed to be much cheaper than the 8080 and 6800.

    I am not sure about "much".

    The target price for the 6502 was USD 25 at a time when the 6800 cost
    $175. I call that "much" cheaper.

    6502 looks simpler than 8080, but
    not much simpler.

    Not from the design alone. I think that Intel and Motorola did not
    lower the prices of their products as yields improved, and MOS
    Technology used that window to enter the market with a drastically
    cheaper product; and the smaller design meant that they would always
    have lower cost than Motorola.

    IIUC in not so long time prices of Z80 (which
    is sigmificantly more complex than 8080) and 6502 got very
    similar.

    The Z80 initially cost USD 200 <https://tedium.co/2024/05/11/zilog-z80-history/>, a year after the
    6502. I expect that competition drove the price down soon, and once
    the dies are cheap to make, the packaging limits the cost. Both CPUs
    use 40-pin DIPs, so ...

    - anton
    --
    'Anyone trying for "industrial quality" ISA should avoid undefined behavior.'
    Mitch Alsup, <c17fcd89-f024-40e7-a594-88a85ac10d20o@googlegroups.com>
    --- Synchronet 3.21e-Linux NewsLink 1.2