Hacker News new | ask | show | jobs
by Rohansi 45 days ago
The 6502 can't actually address more than that. The flash controller built into modern SD cards are also going to be significantly more powerful than the 6502. And I'm surprised you can even buy SD cards that small still!
2 comments

> The 6502 can't actually address more than that.

Unless you use bank switching, which historically a lot of 6502 machines did use (e.g. Apple III/IIe/IIc, BBC Master 128, Commodore 128, Commodore CBM-II, etc)

Quick note that bank switching does not in fact allow the CPU to "address" more than 64K. It allows the machine to "have" more than 64K but only 64K of it can be addressed by the CPU at any time.
The MOS 6509 has bank switching hardware built into the CPU, instead of being on an external MMU chip such as the MOS 8722.

What makes the CBM-II's 6509 fundamentally different from the C128's 8502+8722 combo? And what makes either fundamentally different from the segmentation scheme of the 8086/8088?

And could you imagine how painful it would be to manage megabytes of RAM with bank switching on a 6502!
Bank switching is how nearly all the major computers and consoles managed to address larger than 64k carts and memory.

The C64 actually had 64K of ram, 4k of devices (graphics, sound etc) and 16K of ROM.