A 6502 emulator