Intel8080 emulation in JavaScript