agentusecasesAll 965 use cases
Software & DevOps

Recompile a 1991 assembly PC game with Claude Code

The author uses Claude Code CLI with Sonnet to get the source of their 1991 386+ assembly game compiling again.

Done withClaude Code

What they did
The author took the full source of an unpublished 1991 386+ assembly game and set up UASM, which is MASM-compatible, with DOSBox for running results. Using Claude Code CLI with Sonnet, they got the old build utilities compiling. They also asked the model to locate bugs mentioned in their own old code comments.
How it went
The picture converters and sprite extractor now compile and run in DOSBox, but the main game doesn't compile yet; the author expects a few more hours. Sonnet 4.6 immediately spotted a clash with a reserved name, incbin.
Worth knowing
Old macro names may now be reserved words in modern assemblers; here a macro called incbin blocked UASM compilation until the model pointed it out.

Try it yourself with Claude Code

I have the source code of an old [language, e.g. 386 assembly] project at [path to folder] that I last built in [year]. Work out which assembler, linker and tools it needs, set up a way to build it on my [OS], and fix errors until it compiles and runs. Explain each change you make, and ask me before you delete or overwrite any original files.

Read the original ↗

Source: HN · Apr 8, 2026

Five of these in your inbox every morning

The best things people got an AI agent to do, each with the prompt to try it.

More like this