Target — ZX Spectrum 48/128 (+zx)

SkillProductivity

z88dk +zx only: ZX Spectrum 48/128 (not Next). Classic default, newlib optional, -lndos stubs vs real FS (-lesxdos/-lp3), TAP/SNA/DOT packaging. Use when the task is explicitly +zx / Spectrum 48/128, not +zxn.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Target — ZX Spectrum 48/128 (+zx) skill

What this skill tells your AI

The instructions your AI receives, as published by z88dk/z88dk in .agents/skills/target-zx/SKILL.md and read by ahel’s review.

Configlib/config/zx.cfg
Treesclassic libsrc/target/zx/; newlib libsrc/newlib/target/zx/
Headersclassic include/arch/zx/; newlib _DEVELOPMENT/common
Wikiwiki/platforms/Platform---Sinclair-ZX-Spectrum.md
Helpzcc +zx -h

Not Next

+zx+zxn
Machine48/128 SpectrumSpectrum Next
Default CLIBclassic defaultnewlib sdcc_iy
CPU in OPTIONSZ80-mz80n
Appmake+zx+zxn (.nex, …)

Do not copy Next subtypes (nex, snx, dotn) onto +zx.

Defaults

ItemValue
CLIBclassic default-lzx_clib -lndos
SUBTYPEdefault-Cz+zx
Math (classic native)Z88MATHLIB=mzx / __MATH_ZX

Classic vs newlib

WorldSelectNotes
Classicomit / -clib=default / ansi / noclibMain Spectrum path; examples under examples/spectrum/
Newlib-clib=new / sdcc_ix / sdcc_iyCRT zx_crt.asm.m4; -lzx

Disk: classic default links -lndos (stubs). Real FS on the command line, searched first: -lesxdos, -lp3, -lzxmdv, -lzxbasdrv, … Never put -lndos before a real driver.

Subtypes (packaging)

SubtypeRole
defaultTAP-style via +zx
wav / turboaudio loaders
snasnapshot
binraw binary
rom / if2ROM cartridge
dot / dotxesxDOS DOT (startupoffset 0x100 / 0x200)
plus3+3 loader pragma
zxvgsZX VGS packaging

Recipes

zcc +zx -vn hi.c -o hi -create-app
zcc +zx -clib=ansi -create-app …
zcc +zx -lp3 -create-app …                    # real +3 FS
zcc +zx -clib=sdcc_iy -create-app …
zcc +zx -subtype=sna -create-app …

Agent notes

  1. Graphics / engines under libsrc/target/zx/ (bifrost, nirvana, ulaplus, …) — match neighbour usage.
  2. Related: cpu-z80, library-classic, library-newlib, tool-appmake.

Signals

GitHub stars
1k
Forks
206
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
target-zx
Source
github.com/z88dk/z88dk