Optimizing 6502 Instruction Fetches
A series of implementations of 6502 CPU instruction fetches for cycle-accurate NES emulation. Starting from a naive switch statement approach, I explore map-based lookup tables and eventually settle on a clean array-based solution that achieves constant time performance without conditionals.