ulator.tickrate
			emulator.tick()
		}
		if (emulator.dt > 0) emulator.dt--
		if (emulator.st > 0) emulator.st--
		XOAudio && XOAudio.refresh(frameTime/1000)
	}
	renderDisplay(emulator)
	document.body.style.backgroundColor = emulator.st?emulator.buzzColor:emulator.quietColor
}, frameTime)
injectAdaptiveControls(emulator.touchInputMode,document.getElementById('target'),ku,kd)
</script>
