Instruction Reference

by Ciaran McCreesh

This instruction reference has a number of purposes:

Note that currently this is not a complete list. It is still under construction.

Index of Instructions

Load and Exchange Instructions
Arithmetic and Logic Instructions
Stack and Jump Instructions
IO and Block Instructions

Key to Letters Used

Certain letters (these may be in dark red italics if your browser supports CSS) are used to mean special things. The meanings of these are listed below. The letters may seem slightly strange - most of them were taken from the z80 Technical Data, I've added a few more and removed a few for clarity.

Symbol Meaning
r, r2 Any of a, b, c, d, e, h or l
n Any 8 bit number
nn Any 16 bit number
dd Any of bc, de, hl or sp
ii Either ix or iy
d An 8 bit offset in index relative form (between $0 and $ff)
e An 8 bit offset in Program Counter relative form
pp Any of bc, de, ix or sp
rr Any of bc, de, iy or sp
qq Any of bc, de, hl or af
cc Any of the conditions nz, z, nc, c, po, pe, p or m
ff Any of the conditions c, nc, z or nz
p Any of $00, $08, $10, $18, $20, $28, $28, $30 or $38