A small 6502 emulator