Рет қаралды 936,179
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": • NES Emulator Part #2: ...
Another good talk to watch is this video from Matt Godbolt about the BBC Emulator he wrote in Javascript!!!: • Emulating a 6502 syste...
Code is here: github.com/davepoo/6502Emulator
Links:
6502 Processor: www.obelisk.me.uk/6502/
C64 Memory Map: sta.c64.org/cbm64mem.html
C64 Reset Process: www.c64-wiki.com/wiki/Reset_(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