New static recompiler tg16kit turns the entire PC Engine and TurboGrafx-16 library into native C++
tg16kit is a new static recompiler for PC Engine and TurboGrafx-16 that compiles the whole library into native C++ code running frame-identical.
Developers released tg16kit, a new static recompiler for the PC Engine and TurboGrafx-16 (1987) consoles. The toolkit converts games into native C++ using a HuC6280-to-C++ recompiler, and a runtime that replaces the console’s VDC, VCE, and PSG chips runs under the recompiled code.
According to the repository, all 423 cards from MAME’s software lists recompile, build, and run frame-for-frame identical to the interpreter over 6,000 test frames. The ROM set is not distributed, so you need your own dumps. 140 of the 423 never touch the interpreter, and 402 interpret fewer than 100 instructions a frame. Sound support includes all six PSG channels alongside DDA and noise.
To try it out:
- Run
python -m tg16kit.play "genjin"to find, recompile, and play a game in a window. - Execute
python -m tg16kit.cart --collect SETDIR tg16kit/TurboGrafx-16to collect listed dumps by CRC. - Recompile and build a game with
python -m tg16kit.recomp ROM.pce --trace build/trace/GAME --out build/recomp/GAME --build.