6502 Emulator in C++