Post #1825657
2026-04-29 18:37 UTC
This morning I tracked down an emulator bug that manifested as rendering the first scene of a demo and then skipping directly to the third. This kind of thing is brutal (and kind of fun, sometimes) to track down because it is very hard to pinpoint the point where things have gone wrong.
Replies (1)
-
@evmar@inuh.net 2026-04-29 18:39
The first step was trying to isolate the problem. I disassembled enough of the code to figure out that the phases were (thankfully) pretty simple sequential code. The cool new thing about the static translation approach of Theseus is that I can modify the translated source code by hand, so it was easy to patch out the call to phase1 and panic in phase3, which reduced the problem to the program immediately entering and then leaving phase2.