Version : GFA Decompiler is now Phoenix Decompiler

Rise your source from the dead.

Phoenix Decompiler turns Atari ST programs compiled with GFA BASIC (1.x, 2.x and 3.x up to 3.6 TT), STOS BASIC or Omikron BASIC back into BASIC listings you can load, read, edit and compile again. Then it proves the listing is right by compiling it with the original compilers and comparing the result byte for byte.

GFA BASICSTOS BASICOmikron BASICWindowsmacOSLinuxFree

Phoenix Decompiler: a pixel-art phoenix rising in flames from a broken floppy disk, under a striped sunset, over a neon grid. Rise your code from the dead (programs)
One command

Decompile and prove it

Point phxdec at a program, packed or not. It finds the compiler that made it, writes the source beside it, and with -verify compiles that source again and compares it with the original down to the last byte. Or double-click phxdec and do it all from a page in your browser.

phxdec
C:\GAMES> phxdec GAME.PRG -verify
Phoenix Decompiler  - Copyright (c) 2026 Darren Birks
GAME.PRG: depacked (Ice 2.40)
GAME.LST, GAME.GFA: 6768 lines, 0 not decompiled yet; compiled with GFA-BASIC Compiler 3.6 TT D
GAME.NAM: the generated names, each as itself
GAME.CMT: the units, with no comments
verified: recompiles byte-identical

Result: success - recompiles byte-identical
C:\GAMES> 
The Phoenix Decompiler page in a browser: a GFA BASIC 3.50 program decompiled and verified byte-identical, with the files written listed on the left and the decompiled listing shown on the right
The Phoenix Decompiler page: double-click phxdec, drop a program on it, and the output, the files and the listing are there. Its Scan mode and the AI clean-up are a click away.
What it does

Everything in one program

Each download is a single file with nothing to install. The GFA, STOS and Omikron compilers, linkers and libraries, the library fingerprints, the STOS extensions, the depackers and a 68000 interpreter are all built in.

Three BASICs

GFA BASIC 1.x, 2.x and 3.x come back as a listing plus the tokenised .GFA or .BAS. STOS BASIC comes back as the .BAS STOS loads and an .ASC listing, and Omikron BASIC as a .BAS and a .LST.

Verified byte for byte

With -verify, the listing is compiled again with the compiler the program was made with and compared with the original, down to the last byte.

A page in your browser

Double-click phxdec (or run phxdec -gui): drop a program on the page, decompile and verify, view and save the files, and scan whole collections, with no commands to type.

Real names with AI

One click sends the listing to Claude, ChatGPT, Gemini, Copilot, DeepSeek, Mistral or Grok on your own account. Its names and comments go in, and phxdec checks the program still compiles the same.

Scan whole collections

-scan finds BASIC programs in folders, ZIP, LZH and ARJ archives, .ST, .MSA and .STX disk images, PMK RAM disks and CD-ROM .ISOs, nested to any depth. -test verifies each one.

Packed and patched

Ice, Atomik, JAM, Automation, Fire, Powerpacker, RNC and more are depacked first. Cracks and hand patches are named, and -restore puts the original instructions back.

The BASICs

GFA, STOS and Omikron

Each one with its real compilers built in, so every listing is checked against the compiler that made the program.

GFA BASIC

  • 1.x and 2.x, and 3.x up to 3.6 TT
  • The real compilers, linkers and GFA3BLIB libraries
  • Patched libraries recognised, such as the Falcon HIDEM/SHOWM fix
  • .PAT files rebuild hand-patched programs exactly

STOS BASIC

  • Compiler builds 1.1, 2.05, 2.06 and 2.07, and the community 2.07 and 3.0
  • About 40 extensions built in, from Missing Link to Extra
  • -scanextensions lists the extensions in a collection
  • STOS fixers recognised and put back by -restore

STOS BASIC in the documentation

New in 1.2

Omikron BASIC

  • Compiler builds 2.3E, 2.4E, 3.00, 3.05, 3.06, 3.59E and 4.08E
  • Programs that load BASLIB, BASLIB_3 or BASLIB_4, or linked by CUTLIB
  • Line numbers kept when the program was compiled with them
  • Tokenised sources listed to .LST

Omikron BASIC in the documentation

Quick start

Five commands to know

Run phxdec from Command Prompt or PowerShell on Windows, or from Terminal on a Mac or Linux. Or just double-click it for the page.

Open the page

With no arguments, phxdec opens its page in your browser.

phxdec

Decompile

The listing, the tokenised file and the names and comments files go beside the program.

phxdec GAME.PRG

Verify

Decompile, compile the source again and compare it with the original.

phxdec GAME.PRG -verify

Edit and rebuild

Compile an edited listing back into a program with the built-in compilers.

phxdec -compile GAME.LST

Scan a collection

List the BASIC programs in a folder, its archives and its disk images.

phxdec -scan DISKS -recurse
Latest release
phxdec
Download the zip
  • phxdec.exe for 64-bit Windows 10 or later
  • mac/phxdec for Apple Silicon Macs (M1 and later)
  • linux-x64/phxdec for 64-bit Linux
  • a .sha256 beside each, README.txt and prompts/

Unzip it anywhere and double-click phxdec.exe for the page, or run it from PowerShell or Command Prompt in that folder:

.\phxdec.exe GAME.PRG -verify

Copy phxdec.exe to a folder on your PATH to run it from anywhere as phxdec.

Check a download with its .sha256: sha256sum -c phxdec.exe.sha256 (on Windows, certutil -hashfile phxdec.exe SHA256 prints the hash to compare).

Release notes

What's new

The changes in each version.

Version 1.2

  • GFA Decompiler is now Phoenix Decompiler, as it decompiles more than GFA BASIC: the program is phxdec and the download phxdec-v1.2.zip.
  • Omikron BASIC: programs compiled with the Omikron BASIC compiler 2.3E to 4.08E are decompiled to NAME.BAS and NAME.LST, verified with the real compilers built in, and compiled again with -compile.
  • The Phoenix Decompiler page: phxdec on its own (or a double-click) or phxdec -gui opens a page in your browser to decompile, verify, view and save the files, and scan collections.
  • AI clean-up on the page: one click sends the listing to Claude, Claude Code (your Claude plan), ChatGPT, Gemini, Copilot, DeepSeek, Mistral or Grok with your own key, puts its names and comments in and verifies again.
  • Every decompile writes NAME.NAM and NAME.CMT, starter names and comments files, and -names and -comments work for GFA BASIC 1.x, 2.x and 3.x, STOS BASIC and Omikron BASIC.
  • More GFA BASIC 3.x programs verify, with more forms of the compiler and more patched libraries known.
  • STOS BASIC: pad bytes go in NAME.PAT so -compile -patch gives the program byte for byte; the .BAS header's length now counts the banks, so STOS loads them; EGGN's STOS fixer v2 is recognised.
  • -scan looks inside the disks of PMK v1.2 RAM disk programs, -scan -omikron lists only Omikron BASIC programs, and each line now reads "FILE, what it is".
  • Each program in the zip has its SHA-256 beside it.

Version 1.1 28 November 2026

  • STOS BASIC: programs compiled with the STOS BASIC compiler are decompiled to NAME.BAS and NAME.ASC, verified with the real STOS compiler builds and extensions built in, and compiled again with -compile.
  • -scan -gfa and -scan -stos list only GFA BASIC or only STOS BASIC programs.
  • -scan looks inside LZH and ARJ archives, .STX disk images and CD-ROM .ISOs too, and -disable leaves out the ones you name.
  • -scanextensions lists the STOS BASIC extensions in folders, archives and disk images, known or new.
  • -scancompilers lists STOS BASIC's compilers and libraries too, and only compilers and libraries.
  • -verify checks the NAME.PAT it writes: -compile -patch NAME.PAT must give the program as found.
  • Damaged programs: code lost to a sector of zeros, or foreign bytes from a sector boundary, is reported with its offset.
  • More hand patches are named and put back by -restore.
  • Pack-Ice programs packed with a smaller window, and packed programs with bytes after their relocation list, are repacked the same.
  • The download is smaller: the built-in files are packed and unpacked once a run.

Version 1.0 25 November 2026

The first release, as GFA Decompiler (gfadec). It includes:

  • Decompiling programs from GFA BASIC 1.x, 2.x and 3.x up to 3.6 TT into a listing (.LST) and the tokenised .GFA or .BAS file.
  • Verifying with -verify: the listing is compiled again with the original GFA compiler and compared with the program byte for byte.
  • Compiling edited listings with -compile, using the built-in compilers.
  • Depacking Ice, Atomik, JAM, Automation, Fire, Powerpacker, RNC and more, and running a program's own depacker with -run.
  • Scanning folders, ZIPs and .ST and .MSA disk images with -scan, and verifying each program found with -test.
  • Finding and naming cracks and hand patches, with -restore to put the original instructions back.
  • Prompts for an AI assistant to give the program real names and comments, checked afterwards.
Reading the result

One line tells you how it went

Every run ends with a result line, in colour on a console. The exit status matches it, so scripts can check it too.

successEvery line decompiled. With -verify, the source compiles to exactly the original program.
partialDecompiled, but some lines are kept as ' ?? comments, or the program recompiles differently. phxdec says which units match and why the others differ.
failedNot a program phxdec knows, an unknown packer (try -run), or a compiler error. The reason is printed above the result line.

Some programs can't be rebuilt from any source, because they were patched, cracked, padded or damaged after compiling. The decompiled source is still right. phxdec names what differs, and Verifying in the documentation explains each case.