DIR7 notes inside
6502 Emulator Project
Cycle-accurate emulation of the MOS 6502 processor.
The 6502 CPU
The 6502 is a 8-bit microprocessor, with a 16-bit address bus which gives a memory range of 0x0000~0xffff, (a whole 64k of ram! oh boy!), and supports 56 opcodes.
Rust-6502-Emulator: https://github.com/brandoncharest/Rust6502
Resources
proj nestesting.md Verifying a 6502 Emulator with Nestest Quest for the Golden Logs and how I verified the CPU logic proj cpu.md From Monolithic Match to Modular Dispatch Refactoring the 6502 CPU to use a dispatch table instead of a monolithic match statement. log devlog.md Rust 6502 Dev Log A chronological record of my suffering. proj first-loop.md First Heartbeat: Implementing the 6502 Reset and Loop Conducting the initial smoke test for the emulator. proj status.md 6502 Status How I used Rust's bitflags to make the 6502 status register readable. proj registers.md 6502 Registers What the 6502's registers are for, and why they are 8 bits wide. note opcodes.md Opcode Handling interrupts and pushing the program counter to the stack.