I think this code is why the game froze on my packard bell back when I was a kid:
It's setting up the timer and then going into an infinite loop, expecting an interrupt to kick it out of loop eventually.
Something about the packard bell's PIT means that sometimes that wouldn't happen, and the cutscene would just hang forever