Target — SMS / Game Gear (+sms)

SkillCommunication

z88dk +sms only: Sega Master System / Game Gear. Classic default, newlib CLIBs, VDP/PSG console path, .sms/.gg packaging. Use when the task is explicitly +sms / Master System / Game Gear.

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 — SMS / Game Gear (+sms) skill

What this skill tells your AI

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

Configlib/config/sms.cfg
Treesclassic libsrc/target/sms/; newlib libsrc/newlib/target/sms/
Headersinclude/arch/sms (classic include path in cfg)
Wikiwiki/platforms/Platform---SMS.md
Helpzcc +sms -h

Defaults

ItemValue
CLIBclassic default-lsms_clib -lndos
SUBTYPEdefault-Cz+sms.sms
Defines__SMS, __Z80

Bare zcc +sms … is classic.

Classic vs newlib

WorldSelectLink / CRT
Classicdefault-lsms_clib, classic sms_crt0
Newlib-clib=new / sdcc_ix / sdcc_iy-lsms, sms_crt.asm.m4

Wiki smoke note: newlib CLIBs exist; minimal printf may not link (_stdout) on a bare program — use newlib SMS examples / CRT that instantiates stdio, not assume classic drop-in.

Subtypes

SubtypeRole
defaultMaster System ROM via +sms
gamegear-Cz+sms -Cz-e -Cz.gg + __GAMEGEAR__.gg
noneno packaging

Aliases: --smslib, --smslib-md (pragma defines for SMSlib-style builds).

Hardware (agent-relevant)

ItemSpec
CPUZ80 ~3.58 MHz
RAM8 KiB
VideoVDP (TMS-class), 16 KiB VRAM
SoundSN76489 PSG
Classic libgencon / hires gfx / PSG / joystick / interrupts (see wiki checklist)
File I/Ogenerally no classic disk stack

SMSlib notes: libsrc/target/sms/SMSlib/README.md when using that stack.

Recipes

zcc +sms -vn game.c -o game -create-app           # .sms
zcc +sms -subtype=gamegear -create-app -vn …
zcc +sms -clib=sdcc_iy -create-app …              # newlib; watch CRT/stdio

Agent notes

  1. Not Spectrum — no TAP/NEX recipes.
  2. Prefer classic for console/graphics samples under examples/sms/.
  3. Related: cpu-z80, library-classic, tool-appmake.

Signals

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