Emulating a CPU in C++ (6502)

This isn’t a full implementation of the 6502, this is more just a from scratch into in learning how a CPU works by writing an emulator one (in this case the 8-bit 6502). If you want a more in depth video on writing a full 6502 emulator then see One Lone Coder’s “NES Emulator Part #2“: Another good talk to watch is this video from Matt Godbolt about the BBC Emulator he wrote in Javascript!!!: Code is here: Links: 6502 Processor: C64 Memory Map: C64 Reset Process: (Process) Timestamps: 0:00 - Intro 0:29 - The 6502 4:24 - Creating CPU Internals 9:23 - Resetting the CPU 12:48 - Creating the Memory 15:10 - Creating the Execute function 23:32 - Emulating “LDA Immediate“ instruction 28:00 - Hardcoding a test program 31:50 - Emulating “LDA Zero Page“ instruction 37:20 - Emulating “LDA Zero Page,X“ instruction 38:42 - Emulating “JSR“ instruction 48:30 - Closing comments
Back to Top