Welcome, this is the discussion board of TASVideos.
If you have a question, please read the Site FAQ first to see if your question has already been answered.
Be sure your posts conform to Site Rules
We also have a Discord server and an IRC channel #tasvideos at irc.libera.chat...
Be sure your posts conform to Site Rules
We also have a Discord server and an IRC channel #tasvideos at irc.libera.chat...

The scr{Begin,FinishV,ReturnV} stuff in this code is due to cothreading/coroutines. The run() method is called every frame, but it is written as if it calls the emulator, not the other way around. It is a shame C++ doesn't support coroutines by default.
Example output: