3 ms·
Could you create a 6502 with cache and pipelining? My understanding is that those are both implementation details that shouldn't affect the "userspace ABI" that
by yjftsjthsd-h 4y ago
Could you create a 6502 with cache and pipelining? My understanding is that those are both implementation details that shouldn't affect the "userspace ABI" that code running on the chip can see, other than making performance nonuniform (because it slows for every cache miss and branch misprediction). Obviously that only helps with true memory access; I don't think there's anything to be done for true I/O.
- vikingerik 4y agoI/O and memory access are the same thing for the 6502. All it can do is read or write from a bus with 16 address bits and 8 data bits. The environment/motherboard might have memory that responds to some combinations of those address bits, and it might have something like say an NES PPU that responds to other combinations, by handling those writes as tile or sprite data and generating a video output signal. You could hypothetically make a 6502 with a wider or dual bus, so that it could read or write more than one byte per cycle or both at the same time, if whatever else is on the bus on the other ends of the reads/writes is compatible with that. In that way you could speed up executing 6502 instructions by more than just increasing clock speed.
- ack_complete 4y ago6502s or 65C02s were used with cache in many Apple II accelerators. Apple licensed one of them for the Apple IIc.
- flohofwoe 4y agoPlugging such an "advanced 6502" into a traditional home computer design would break pretty much all games and scene demos, because those depend on "hard realtime" behaviour of the whole system down to single clock cycles (this is also why cycle-correct emulators are slower than emulators with less strict timing requirements - a cycle correct emulator can only take shortcuts for behaviour that doesn't "leak" into the rest of the system).