C-based 6502 Emulator