What are CPU designs which are not fetch/store but operate directly on RAM?

I only know about the design of the Nintendo Entertainment System (NES), where the CPU does not have registers (AFAIK) and operates directly on RAM, with fast access to low addresses in the RAM.

What CPUs/Systems do you know, which also do not do fetch/store for their operands? Which systems are out there? Why do CPUs like RISC/Arm/AMD64 use fetch/store, what are the tradeoffs? Are there different architectures for CPUs working on operands outside of fetch/store, DMA and stack machines?

  • Ilsunny@lemmynsfw.com
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    8 months ago

    primarily speed. In order to avoid constantly searching for RAM, the majority of CPUs have a cache adjacent to them. It resembles a priority queue with VIP cache on a separate queue.

    • wolfOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      8 months ago

      Thank you very much for your answer. I totally agree and understand why modern CPUs have registers. But what about low end/cheap (embedded?) hardware, any design/board/CPU w/o registers?

      • Thorry84@feddit.nl
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Registers would only add very little amount of transistors to a CPU with huge gains, so even at the low end it isn’t worth it.

        These days low end is also crazy, you can get full fledged 32-bit microcontrollers for pennies.

    • wolfOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      Thank you very much for your answer! :-)

      I would also assume, that at least 1-3 registers are ‘always’ in a CPU, like instruction pointer, top of stack for stack machines or for modern CPUs frame pointers.

      For the NES, as far as I understand, you can also operate on the lower memory addresses with the CPU by simply referring to their address.

      In the end, what triggered my question is the (banal) insight, that one actually does not need registers from computer science point of view and I am wondering if there are any implementations.

      (Obviously for speed reasons alone one wants registers…)

      • Thorry84@feddit.nl
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Interesting question, a lot of CPUs have instructions that act directly on memory, but not having any registers would be a weird kind of system. You could design one for yourself en run it on an FPGA, but it probably wouldn’t work very well. At the very least you would want to have an instruction pointer and accumulation registers.

    • wolfOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      Just to be more specific, from your link the operations with operands from low registers “zpg zeropage OPC $LL operand is zeropage address (hi-byte is zero, address = $00LL)” looks like exactly the stuff I am interested in. It seems to me, that they are like 256 (slower) pseudo registers.

      • farcaster@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Ah, I see what you mean now. Yeah I’m guessing there are code sequences where it’s more efficient (either in clocks or code size or simple convenience) to operate on these 256 low addresses than repeating load/hit/store.