Game Sources β
All BASIC and assembler sources for the CARD library and the card games are bundled in a single zip you can download here β useful when GitHub access is restricted on your network.
π¦ Download CARD_Games_C64-Dev.zip β about 170 KB
The archive mirrors the Dev/ folder of the GitHub repository.
What's inside β
Dev/
βββ build-d64.ps1 Main builder: tokenize .bas, write .D64
βββ extract-d64.ps1 Reverse: extract a .D64 back to .bas/.prg
βββ BlackJack/ 1986 original
βββ BlackJack-it/ 1986 original (Italian)
βββ Briscola/ 1987 original
βββ Briscola-en/ 2026 English remaster (with build.ps1/.cfg)
βββ Briscola-it/ 2026 Italian remaster
βββ Poker4/ 1987 original
βββ Poker4-en/ 2026 English remaster
βββ Poker4-it/ 2026 Italian remaster
βββ Test/ CARD Routines 2 clipping test + capture-card toolEach game folder typically contains:
*.basβ BASIC source (PETSCII text, listing form)*.prgβ compiled C64 binariescard-symbols.prgβ graphic data shared by every gamecard-routines.prgβ CARD library binary (orcard-routines-clipping.prgfor the 2026 update)start-*.bas/start-*.prgβ boot loader that POKEs memory protection and chains LOAD / RUNbuild.cfg+build.ps1(2024+ projects only) β declarative build manifest plus a thin wrapper around the top-level builder
Prerequisites β
You need VICE installed. The scripts use three of its bundled tools:
petcat.exeβ tokenizes BASIC text into a C64 binaryc1541.exeβ creates and writes.D64disk imagesx64sc.exeβ launches the emulator with the freshly-built disk
By default the scripts look for VICE at D:\App\GTK3VICE-win64\bin. Edit the $ViceDir variable at the top of build-d64.ps1 and extract-d64.ps1 to match your install path.
Building a .D64 β
The 2024-2026 game folders ship with a per-folder build.ps1 shortcut. From inside Dev/:
# Build the English Briscola
.\Briscola-en\build.ps1
# Same thing via the top-level builder
.\build-d64.ps1 -GameFolder Briscola-en
# Build without launching VICE afterwards
.\build-d64.ps1 -GameFolder Briscola-en -NoRunThe resulting .D64 is written one level up (..\Briscola-en.D64). After a successful build, VICE is launched automatically with -autostart, so you can play immediately.
The build.cfg format β
Each modern project has a build.cfg like this one (Briscola-en/build.cfg):
DISK_LABEL=briscola en,01
D64_NAME=Briscola-en.D64
FILE=start-briscola-en.bas,start briscola en,basic
COPY=Briscola-it\card-symbols.prg,card symbols,prg
COPY=Briscola-it\card-routines.prg,card routines,prg
FILE=briscola-en.bas,briscola en,basicDISK_LABELβ name and disk id of the formatted diskD64_NAMEβ output filename (written one level aboveDev/)FILE=local,disk,typeβ file in this folder;typeis eitherbasic(tokenized through petcat) orprg(copied raw)COPY=path,disk,typeβ file pulled from another folder (typical use: shared card symbols / card routines)
Extracting an existing .D64 β
To go in the opposite direction β pull a .D64 image apart into editable sources β use extract-d64.ps1:
.\extract-d64.ps1 -D64File ..\Briscola-en.D64
# or with a custom output folder
.\extract-d64.ps1 -D64File ..\Briscola-en.D64 -OutputFolder my-briscolaFor each file on the disk the script:
- Reads the raw PRG with
c1541 -read - Tries to detokenize it with
petcat -2(succeeds for BASIC files, leaves binaries alone) - Generates a fresh
build.cfgmatching the disk layout - Writes a one-liner
build.ps1that re-invokes the top-level builder
A typical workflow is therefore "extract β edit .bas β rebuild", staying inside the same folder.
Going further β
The Test/ folder also contains capture-card.ps1 β a tool that runs VICE in warp mode to screenshot every card the CARD library can draw. It's the source used to generate the Cards Gallery. The full procedure is documented in Test/capture-card.md inside the archive.
If you build a new game with CARD or fix a bug in one of the existing ones, please open a pull request on the GitHub repository β it remains the place to coordinate changes.
