2 ms·
The problem isn't that sound is written to the screen, but that triggering an interrupt pushes to the stack (which is pointing at the screen). Their fix of dra
by lunixbochs 13y ago
The problem isn't that sound is written to the screen, but that triggering an interrupt pushes to the stack (which is pointing at the screen).
Their fix of drawing in the opposite order works because a push/pop of the stack will then affect the upcoming graphics bytes instead of the previous ones.