Biomotor Unitron disassembly
I disassembled Biomotor Unitron to a 100% byte-exact rebuild with all 1500+ routines named and documented with zero place holder values or guesses left.
This has always been one of my favorite games. With all the buzz around disassemblies and decompilations I thought I would try my hand at one. This game seemed like a good candidate. It's not a perfect game, but I always loved it. I was also motivated by my desire to play the second game, which as it turns out is made on the same engine, more or less. I've started that work too, but it's harder because the game is in Japanese. I have considered google translate, but it would be cool to get some real Japanese language help and do an actual translation. I digress.
Doing a full disassembly solo normally takes years. So I used AI, like virtually all of this current wave of disassemblies and decomps we're seeing. Anyhow, while disassembling Biomotor Unitron, I built Unitron, a full Neo Geo Pocket Color toolchain. I know there are plenty of these too, but this one has a novel addition. It features a headless reverse engineering harness for LLM assisted reverse engineering, built on the NgpCraft emulator.
Most "AI plays a game" setups burn a lot of tokens on vision polling screenshots just to see if a menu loaded or a certain game state has been reached. Mine is different. I built a deterministic, state-driven CLI runner. The design minimizes the surface area the model has to reason over so it can play the game and map the binary at the same time.
TL;DR:
• Instead of slow screenshot loops, agents play the game using reproducible route scripts. unitron play provides universal primitives like until (watching RAM addresses directly for screen IDs, cursors, or HP) and expect assertions. You layer thin, game-specific scripts on top (like a one-line RAM status printer or menu helpers) so the agent plays intelligently instead of blindly mashing buttons.
• As routes run, the harness logs every executed code address and feeds that trace straight back into unitron dis --executed, automatically resolving jump tables and dynamic code paths that static analysis misses.
With out this harness, this would ahve taken a single human literally years. This was pretty fun, and I think it's meaningful from a preservation standpoint, becuase I wouldn't be surprised if the source code for these games were lost.
My tools are in the repo unitron (linked in the readme, I guess i can only add one link here).
