Version is out

Get the source back from any GFA BASIC program.

GFA Decompiler turns Atari ST programs compiled with GFA BASIC 1.x, 2.x and 3.x, up to 3.6 TT, 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 GFA compilers and comparing the result byte for byte.

WindowsmacOS (Apple Silicon)LinuxFree

gfadec
C:\GAMES> gfadec GAME.PRG -verify
GFA Decompiler  - Copyright (c) 2026 Darren Birks
GAME.PRG: depacked (Ice 2.40)
compiled with GFA-BASIC Compiler 3.6 TT D
GAME.LST, GAME.GFA: GFA BASIC 3.x, 6768 lines, 0 not decompiled yet
verified: recompiles byte-identical

Result: success - recompiles byte-identical
C:\GAMES> 
What it does

Everything in one program

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

Every GFA BASIC

Programs from GFA BASIC 1.x and 2.x, and 3.x up to 3.6 TT, come back as a listing (.LST) plus the tokenised .GFA or .BAS file the editor and the compiler load.

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.

Packed programs

Ice, Atomik, JAM, Automation, Fire, Powerpacker, RNC and more are depacked first. For an unknown packer, -run runs the program's own depacker.

Scan whole collections

-scan finds GFA BASIC programs in folders, ZIPs and .ST and .MSA disk images, nested to any depth. -test verifies each one it finds.

Cracks and hand patches

Bytes changed after compiling are found and named. -restore puts the original instructions back, and a .PAT file rebuilds the patched program exactly.

Real names with AI

The zip comes with prompts for your AI assistant: it gives the made-up names (v02ce, proc_0023c) real ones and adds comments, then gfadec checks that nothing else changed.

Quick start

Four commands to know

gfadec is a command-line program. Run it from Command Prompt or PowerShell on Windows, or from Terminal on a Mac or Linux.

Decompile

The listing and the tokenised file go beside the program.

gfadec GAME.PRG

Verify

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

gfadec GAME.PRG -verify

Edit and rebuild

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

gfadec -compile GAME.LST

Scan a collection

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

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

Unzip it anywhere, open PowerShell or Command Prompt in that folder, and run it:

.\gfadec.exe GAME.PRG -verify

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

Release notes

What's new

The changes in each version of gfadec.

Version 1.1

Version 1.0 25 November 2026

The first release of GFA Decompiler. 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 by gfadec 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. gfadec says which units match and why the others differ.
failedNot a GFA BASIC program, 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. gfadec names what differs, and Verifying in the documentation explains each case.