See the Pen OSR Emulator Example by soritesparadox (@soritesparadox) on CodePen.