CPU — Z180

SkillDocs & knowledge

Z180 notes for z88dk: mlt multiply, math32_z180, eZ80 Z80-mode mlt share, ticks -mz180 / -mez80_z80, ASCI/IO context for yaz180/scz180 targets. Use when writing or measuring Z180 or eZ80-Z80-mode float/mul code.

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 CPU — Z180 skill

What this skill tells your AI

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

Z80-compatible with extras (e.g. mlt). Used by +z180, +yaz180, +scz180, and related products.

Agent facts

TopicDetail
ticksz88dk-ticks -mz180 (eZ80 Z80-mode: -mez80_z80)
HW mulmlt bc/de/hl/sp = ED 4C/5C/6C/7C — same encodings on eZ80 Z80-mode. Helps mul/inv-heavy float; restoring div does not use it
math32math32_z180.lib; eZ80 Z80-mode product is math32_ez80_z80.lib (newlibfiles_ez80_z80.lst → same Z180 mlt helpers)
CPU define-mz180__CPU_Z180__. -mez80_z80__CPU_EZ80_Z80__ (not __CPU_EZ80__; that is ADL -mez80)
TargetsSee target/z180, target/yaz180, target/scz180; classic +test -clib=ez80_z80 for eZ80 Z80-mode

Synthetic opcodes (z80asm)

Same word-copy set as Z80 (normal mode): any of bc / de / hl ← any of those pairs (ld de,hl, ld bc,hl, ld hl,bc, …) = two 8-bit loads. Prefer to park/restore a pair instead of swap chains. Not af / sp.

Strict forbids free synthetics — tool-z80asm.

Assembler capability (last resort)

Fixtures under src/z80asm/dev/cpu/ answer: does z80asm accept this source line for this CPU, and what encoding does it emit?

FileMeaning
cpu_test_<cpu>_ok.asmAssembles successfully; comment after ; is expected encoding
cpu_test_<cpu>_err.asmMust fail (; Error)
*_strict_*Strict mode: synthetics forbidden (real ops / accepted aliases only)

ok is not always one native chip opcode (normal mode may allow synthetics or CD @__z80asm__… helpers).

8080/8085 only: z80asm may accept Intel spellings for external-code compatibility (see fixtures). z88dk writes Zilog only everywhere.

How to read lines, map -m → filename, and rg without loading huge files: skill tool-z80asm.

Related

  • library-math32, tool-ticks

Signals

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