A2 Racer gets a static decompilation and a prerelease port for Windows, Linux and macOS

A2 Racer, a 1997 PC racer, now has a GitHub decompilation with a prerelease C port that runs on Windows, Linux and macOS. You need your own disc dump.

PC (Windows) → PC (Windows), Linux / Steam Deck, Mac · Decompilation

olya_nro20 Oct 2026, 22:15· catalog:Decomp Buddy

A2 Racer, a 1997 PC racing game from the Dutch CD-ROM release by Davilex Entertainment, now has a static decompilation on GitHub. The repo, xvilo/a2-racer-davilex-decomp, is marked as a prerelease and includes a C rewrite that runs on Windows, Linux and macOS.

The work starts from the disc. The author uses REA with Ghidra as the decompiler backend, then runs a set of scripts written for this game. They apply names and structures for the DirectX 3 and 5 interfaces the game uses, add Watcom’s register calling conventions (the game was built with Watcom), and infer function signatures from the machine code. The output is a decompiled.c file per module, plus a version split into the original source files, such as opponent.c and camera.c.

The port is a clean C rewrite on SDL2 and OpenGL, built from the decompiled reference. According to the README, the menus, movies and the race all run. The README does not say what is still missing, so expect an early build.

The repo does not include the game. You need your own disc dump, and the steps below assume the file is named A2RACER_AMST.BIN.

  1. Put the dump in ../A2Racer-dump/. The README gives the expected SHA-256 a6710ba40ea107cd822d5622d0cb564d02540e16dadf43ecb68202a60e3279ab and describes the file as 46,245 raw 2352-byte sectors with no .cue file.
  2. Unpack it next to the repo:
python3 -I tools/bin2iso.py ../A2Racer-dump/A2RACER_AMST.BIN ../A2Racer-dump/A2RACER_AMST.iso
python3 -I tools/isoextract.py ../A2Racer-dump/A2RACER_AMST.iso ../A2Racer-dump/disc
  1. Install JDK 21 and Ghidra 12.1.4, set JAVA_HOME and GHIDRA_INSTALL_DIR, then run tools/decompile_all.sh.
  2. For menus, models, textures and sounds, run tools/a2extract.py <disc> <out>. Keep that output out of the repo.

Next I’d watch whether the port picks up audio and save support, though the README says nothing about either yet.

Sources: github.com