A MOS 6502 emulator in TypeScript