> Here's the first of my bucket list projects I'm completing which I've intermittently worked on for literally two decades.<p>This one hell of a bucket list you must have. Respect.
Despite how simple and limited the 6502 is, it's always interesting to see this almost 50-year-old architecture being stretched to new limits. 6502 cores are still found in some SoCs aimed at the ultra-low-cost high-volume market.
This post has been hanging out with no comments for ages. I was like, I'll skim it later.<p>> It's almost burying the lede to announce that, though, because the real meat in this entry is how the Commodore 64 manages to emulate a very different 6502-based system. That piece is "6o6," for "6502-on-6502," and is a full virtualized software NMOS 6502 CPU that runs on a 6502 CPU — which I've open-sourced too. It has full control of guest code execution, including trapping undocumented and jam opcodes, and completely abstracts all memory access, making it possible to remap addresses, intercept illegal reads or writes, or even run entirely from virtual memory. On top of that, it's complete enough to not only pass a full functional test but also virtualize itself virtualizing itself:<p>This is incredible! Not just from a 6502 perspective, but from an everything perspective! Amazing work.<p>Also, it reminded me of this "The Zilog Z80 has a Protected Mode" <a href="https://www.youtube.com/watch?v=DLSUAVPKeYk" rel="nofollow">https://www.youtube.com/watch?v=DLSUAVPKeYk</a> posted to hn, but got no discussion.
This is amazing. It brings back memories of the first time I taught myself 6502 assembly, there was a book called “The Visual Computer” that came with an emulator on a floppy disk. It was very eye opening! I found a PDF of the book [1] but not sure if the software on the floppy survives anywhere.<p>[1] <a href="https://files.commodore.software/reference-material/books/c64-books/c64-programming-books/assembly-and-machine-language/the-visible-computer-6502.pdf" rel="nofollow">https://files.commodore.software/reference-material/books/c6...</a>