What problem does it solve? Writing or reviewing Z80 assembly for z88dk library and application code requires exact knowledge of flag behavior, opcode encodings, and cycle timings, and mistakes like assuming 16-bit dec sets the Z flag cause subtle bugs. ## Core Features & Use Cases - Opcode Reference: Full unprefixed, CB, ED, and DD/FD opcode grids in Zilog mnemonics with byte counts, T-states, and flag effects in references/opcodes.md. - Flag Rules and Pitfalls: Documents which instructions do not set flags (16-bit inc/dec, djnz, rla family) and contrasts Z80 behavior with 8085 to prevent porting errors. - Assembler Guidance: Explains z80asm synthetic opcodes, strict-mode restrictions, undocumented instructions like sll and ixh, and how to verify encodings against cpu_test fixtures. - Use Case: When optimizing a hot math routine in libsrc, check whether exx, sbc hl,de, or a synthetic ld de,hl is valid and how many T-states each choice costs. ## Quick Start Ask the AI to review a Z80 assembly routine for correct flag usage and cycle timing using the Z80 opcode reference.