6502 Emulator from scratch in C++