Motorola 6809 emulator in JavaScript