Simple 6502 emulator