Precise JavaScript emulation of Intel 8080 CPU