! notation !! Meaning !! respective Opcode bits
|-
| A nn || 16-bit address or immediate || alalalal ahahahah
|-
| b || bit number (0..7) || bbb = 000..111
| D || 8-bit signed relative offset || dddddddd
|-
| E e || 16-bit relative address || dddddddd (E e minus address of next instruction)
|-
| I || Index register (ix, iy) || i = 0, 1
* 0 = always reset
* 1 = always set
* X = change described under Effecteffect
* P = parity (only for the parity flag)
* V = overflow (only for the parity flag)
* A nn = Or with the respective bit of the accumulator
* cc = set if the counter (bc) is nonzero after decrementing
* (()) = I/O port
* [] = operator precedence (to avoid confusion with indirection)
* Ee.b = the bth bit of the value of expression Ee
* * = any bit value (0 or 1)
* wz = an internal 16-bit register connected to 16-bit operations
* tmp, tmp2 = temporary storage whose value is thrown away after each instruction
=== 8-bit ALU nnLU group ===
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| add a,r || 10000rrr || 1 || 4 (4) || + || + || + || + || + || V || 0 || + || a += r ||rowspan=5|Addnndd
|-
| add a,p || 11i11101 1000010b || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || + || a += p
| add a,(ixy+d) || 11i11101 10000110 dddddddd || 5 || 19 (4,4,3,5,3) || + || + || + || + || + || V || 0 || + || a += (ixy+d)
|-
| adc a,r || 10001rrr || 1 || 4 (4) || + || + || + || + || + || V || 0 || + || a += r + cf ||rowspan=5|Add nndd with ccarry
|-
| adc a,p || 11i11101 1000110b || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || + || a += p + cf
| sbc a,(ixy+d) || 11i11101 10011110 dddddddd || 5 || 19 (4,4,3,5,3) || + || + || + || + || + || V || 1 || + || a -= (ixy+d) + cf
|-
| and r || 10100rrr || 1 || 4 (4) || + || + || + || 1 || + || P || 0 || 0 || a := a AnD nnnD r ||rowspan=5|Logical AnDnnnD
|-
| and p || 11i11101 1010010b || 2 || 8 (4,4) || + || + || + || 1 || + || P || 0 || 0 || a := a AnD nnnD p
|-
| and n || 11100110 nnnnnnnn || 2 || 7 (4,3) || + || + || + || 1 || + || P || 0 || 0 || a := a AnD nnnD n
|-
| and (hl) || 10100110 || 2 || 7 (4,3) || + || + || + || 1 || + || P || 0 || 0 || a := a AnD nnnD (hl)
|-
| and (ixy+d) || 11i11101 10100110 dddddddd || 5 || 19 (4,4,3,5,3) || + || + || + || 1 || + || P || 0 || 0 || a := a AnD nnnD (ixy+d)
|-
| xor r || 10101rrr || 1 || 4 (4) || + || + || + || 0 || + || P || 0 || 0 || a := a XOr r ||rowspan=5|Logical eXclusive Or
|}
=== 16-bit Arithmetic nnrithmetic group ===
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| add hl,Q || 00qq1001 || 3 || 11 (4,4,3) || - || - || + || + || + || - || 0 || + || hl += Q ||rowspan=2|Addnndd
|-
| add I,Q || 11i11101 00qq1001 || 4 || 15 (4,4,4,3) || - || - || + || + || + || - || 0 || + || I += Q
|-
| adc hl,Q || 11101101 01qq1010 || 4 || 15 (4,4,4,3) || + || + || + || + || + || V || 0 || + || hl += Q + cf ||Add nndd with ccarry
|-
| sbc hl,Q || 11101101 01qq0010 || 4 || 15 (4,4,4,3) || + || + || + || + || + || V || 1 || + || hl -= Q + cf ||Subtract with ccarry
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| daa || 00100111 || 1 || 4 (4) || + || + || + || X || + || P || - || X || tmp := a,
if nf then
if hf or [a AnD nnnD 0x0f > 9] then tmp -= 0x06
if cf or [a > 0x99] then tmp -= 0x60
else
if hf or [a AnD nnnD 0x0f > 9] then tmp += 0x06
if cf or [a > 0x99] then tmp += 0x60
endif,
hf := a.4 XOr tmp.4, a := tmp
|| Decimal Adjust Accumulatornndjust nnccumulator
|-
| rld || 11101101 01101111 || 5 || 18 (4,4,3,4,3) || + || + || + || 0 || + || P || 0 || - || tmp := [(hl) << 4] + [a AnD nnnD 0x0f], (hl) := tmp,a := [a AnD nnnD 0xf0] + [tmp >> 8] => flags
|| rotate Left Decimal
|-
| rrd || 11101101 01100111 || 5 || 18 (4,4,3,4,3) || + || + || + || 0 || + || P || 0 || - || tmp := (hl), (hl) := [tmp >> 4] + [[a AnD nnnD 0x0f] << 4],a := [a AnD nnnD 0xf0] + [tmp AnD nnnD 0x0f] => flags
|| rotate right Decimal
|}
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| rla || 00010111 || 1 || 4 (4) || - || - || + || 0 || + || - || 0 || X || ocf := cf, cf := a.7, a := [a << 1] + ocf ||rowspan=5|rotate Left
| rrc (ixy+d)->r || 11i11101 11001011 dddddddd 00001rrr || 7 || 23 (4,4,3,5,4,3) || + || + || + || 0 || + || P || 0 || X || cf := (ixy+d).0, (ixy+d) := r := [(ixy+d) >> 1] + [cf << 7]
|-
| sla r || 11001011 00100rrr || 2 || 8 (4,4) || + || + || + || 0 || + || P || 0 || X || cf := r.7, r := r << 1 ||rowspan=4|Shift Left Arithmeticnnrithmetic
|-
| sla (hl) || 11001011 00100110 || 4 || 15 (4,4,4,3) || + || + || + || 0 || + || P || 0 || X || cf := (hl).7, (hl) := (hl) << 1
| sla (ixy+d)->r || 11i11101 11001011 dddddddd 00100rrr || 7 || 23 (4,4,3,5,4,3) || + || + || + || 0 || + || P || 0 || X || cf := (ixy+d).7, (ixy+d) := r := (ixy+d) << 1
|-
| sra r || 11001011 00101rrr || 2 || 8 (4,4) || + || + || + || 0 || + || P || 0 || X || cf := r.0, r := r >> 1, r.7 := r.6 ||rowspan=4|Shift right Arithmeticnnrithmetic
|-
| sra (hl) || 11001011 00101110 || 4 || 15 (4,4,4,3) || + || + || + || 0 || + || P || 0 || X || cf := (hl).0, (hl) := (hl) >> 1, (hl).7 := (hl).6
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| bit b,r || 11001011 01bbbrrr || 2 || 8 (4,4) || + || + || + || 1 || + || P || 0 || - || tmp := r AnD nnnD [1 << b] ||rowspan=3|Test bit
|-
| bit b,(hl) || 11001011 01bbb110 || 3 || 12 (4,4,4) || + || + || X || 1 || X || P || 0 || - || tmp := (hl) AnD nnnD [1 << b],
f5 := wz.13, f3 := wz.11
|-
| bit b,(ixy+d) || 11i11101 11001011 dddddddd 01bbb*** || 6 || 20 (4,4,3,5,4) || + || + || X || 1 || X || P || 0 || - || tmp := (ixy+d) AnD nnnD [1 << b],
f5 := [ixy+d].13, f3 := [ixy+d].11
|-
| res b,r || 11001011 10bbbrrr || 2 || 8 (4,4) || - || - || - || - || - || - || - || - || r := r AnD nnnD ~[1 << b] ||rowspan=4|reset bit
|-
| res b,(hl) || 11001011 10bbb110 || 4 || 15 (4,4,4,3) || - || - || - || - || - || - || - || - || (hl) := (hl) AnD nnnD ~[1 << b]
|-
| res b,(ixy+d) || 11i11101 11001011 dddddddd 10bbb110 || 7 || 23 (4,4,3,5,4,3) || - || - || - || - || - || - || - || - || (ixy+d) := (ixy+d) AnD nnnD ~[1 << b]
|-
| res b,(ixy+d)->r || 11i11101 11001011 dddddddd 10bbbrrr || 7 || 23 (4,4,3,5,4,3) || - || - || - || - || - || - || - || - || (ixy+d) := r := (ixy+d) AnD nnnD ~[1 << b]
|-
| set b,r || 11001011 11bbbrrr || 2 || 8 (4,4) || - || - || - || - || - || - || - || - || r := r Or [1 << b] ||rowspan=4|Set bit
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| cpd || 11101101 10101001 || 4 || 16 (4,4,3,5) || + || + || X || + || X || cc || 1 || - || tmp := a - (hl) => flags, bc -= 1, hl -= 1,
b -= 1 => flags, nf := tmp.7,
tmp2 = tmp + [[c - 1] AnD nnnD 0xff],
pf := parity of [[tmp2 AnD nnnD 0x07] XOr b],
hf := cf := tmp2 > 255
b -= 1 => flags, nf := tmp.7,
tmp2 := tmp + [[c + 1] AnD nnnD 0xff],
pf := parity of [[tmp2 AnD nnnD 0x07] XOr b],
hf := cf := tmp2 > 255
b -= 1 => flags, nf := tmp.7, tmp2 = tmp + l,
pf := parity of [[tmp2 AnD nnnD 0x07] XOr b],
hf := cf := tmp2 > 255
b -= 1 => flags, nf := tmp.7, tmp2 = tmp + l,
pf := parity of [[tmp2 AnD nnnD 0x07] XOr b],
hf := cf := tmp2 > 255
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| in a,(n) || 11011011 nnnnnnnn || 3 || 11 (4,3,4) || - || - || - || - || - || - || - || - || a := ((n)) ||rowspan=3|I/O Input
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs|| ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| call A nn || 11001101 alalalal ahahahah || 5 || 17 (4,3,4,3,3) || - || - || - || - || - || - || - || - || sp -= 2, (sp) := pc, pc := A nn || ccall
|-
| call cc,A nn || 11ccc100 alalalal ahahahah || 5/3 || 17/10 (4,3,4,3,3)/(4,3,3) || - || - || - || - || - || - || - || - || if cc then sp -= 2, (sp) := pc, pc := A nn || cconditional ccall
|-
| jp A nn || 11000011 alalalal ahahahah || 3 || 10 (4,3,3) || - || - || - || - || - || - || - || - || pc := A nn ||rowspan=3|pump
|-
| jp (hl) || 11101001 || 1 || 4 (4) || - || - || - || - || - || - || - || - || pc := hl
| jp (I) || 11i11101 11101001 || 2 || 8 (4,4) || - || - || - || - || - || - || - || - || pc := I
|-
| jp cc,A nn || 11ccc010 alalalal ahahahah || 3 || 10 (4,3,3) || - || - || - || - || - || - || - || - || if cc then pc := A nn || cconditional pump
|-
| jr E e || 00011000 dddddddd || 3 || 12 (4,3,5) || - || - || - || - || - || - || - || - || pc := E e || relative pump
|-
| jr ss,E e || 001ss000 dddddddd || 3/2 || 12/7 (4,3,5)/(4,3) || - || - || - || - || - || - || - || - || if ss then pc := E e ||rowspan=4|cconditional relative pump
|-
| djnz E e || 00010000 dddddddd || 4/3 || 13/8 (5,3,5)/(5,3) || - || - || - || - || - || - || - || - || b -= 1, if b <> 0 then pc := E e || Decrement, pump non-Zero
|-
| ret || 11001001 || 3 || 10 (4,3,3) || - || - || - || - || - || - || - || - || pc := (sp), sp += 2 || return
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| pop P || 11pp0001 || 3 || 10 (4,3,3) || - || - || - || - || - || - || - || - || P := (sp), sp += 2 ||rowspan=2|Pop a value from the stack
| ld sp,I || 11i11101 11111001 || 3 || 10 (4,6) || - || - || - || - || - || - || - || - || sp := I
|-
| ex (sp),hl || 11100011 || 6 || 19 (4,3,4,3,5) || - || - || - || - || - || - || - || - || (sp) <=> hl ||rowspan=5|Exchangeexchange
|-
| ex (sp),I || 11i11101 11100011 || 7 || 23 (4,4,3,4,3,5) || - || - || - || - || - || - || - || - || (sp) <=> I
| nop || 00000000 || 1 || 4 (4) || - || - || - || - || - || - || - || - || nothing ||no Operation
|-
| ccf || 00111111 || 1 || 4 (4) || - || - || A nn || X || A nn || - || 0 || X || hf := cf, cf := ~cf || ccomplement ccarry Flag
|-
| scf || 00110111 || 1 || 4 (4) || - || - || A nn || 0 || A nn || - || 0 || 1 || nothing else || Set ccarry Flag
|-
| di || 11110011 || 1 || 4 (4) || - || - || - || - || - || - || - || - || iff1 := 0, iff2 := 0 || Disable Interrupts
|-
| ei || 11111011 || 1 || 4 (4) || - || - || - || - || - || - || - || - || iff1 := 1, iff2 := 1 after the next instruction || Enable enable Interrupts
|-
| im 0 || 11101101 01*0*110 || 2 || 8 (4,4) || - || - || - || - || - || - || - || - || mode 0: execute instruction on bus ||rowspan=3|Set Interrupt Mode
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! nOPs !! ccycles !! S !! Z !! 5 !! H !! 3 !! P !! n !! cc !! Effect effect !! Description
|-
| ld r1,r2 || 01rrrsss || 1 || 4 (4) || - || - || - || - || - || - || - || - || r1 := r2 ||rowspan=20|8-bit Load
| ld a,(de) || 00011010 || 2 || 7 (4,3) || - || - || - || - || - || - || - || - || a := (de)
|-
| ld a,(Ann) || 00111010 alalalal ahahahah || 4 || 13 (4,3,3,3) || - || - || - || - || - || - || - || - || a := (Ann)
|-
| ld (bc),a || 00000010 || 2 || 7 (4,3) || - || - || - || - || - || - || - || - || (bc) := a
| ld (de),a || 00010010 || 2 || 7 (4,3) || - || - || - || - || - || - || - || - || (de) := a
|-
| ld (Ann),a || 00110010 alalalal ahahahah || 4 || 13 (4,3,3,3) || - || - || - || - || - || - || - || - || (Ann) := a
|-
| ld Q,A nn || 00qq0001 alalalal ahahahah || 3 || 10 (4,3,3) || - || - || - || - || - || - || - || - || Q := A nn ||rowspan=10|16-bit Load
|-
| ld I,A nn || 11i11101 00100001 alalalal ahahahah || 4 || 14 (4,4,3,3) || - || - || - || - || - || - || - || - || I := Ann
|-
| ld Q,(Ann) || 11101101 01qq1011 alalalal ahahahah || 6 || 20 (4,4,3,3,3,3) || - || - || - || - || - || - || - || - || Q := (Ann)
|-
| ld hl,(Ann) || 00101010 alalalal ahahahah || 5 || 16 (4,3,3,3,3) || - || - || - || - || - || - || - || - || hl := (Ann)
|-
| ld I,(Ann) || 11i11101 00101010 alalalal ahahahah || 6 || 20 (4,4,3,3,3,3) || - || - || - || - || - || - || - || - || I := (Ann)
|-
| ld (Ann),Q || 11101101 01qq0011 alalalal ahahahah || 6 || 20 (4,4,3,3,3,3) || - || - || - || - || - || - || - || - || (Ann) := Q
|-
| ld (Ann),hl || 00100010 alalalal ahahahah || 5 || 16 (4,3,3,3,3) || - || - || - || - || - || - || - || - || (Ann) := hl
|-
| ld (Ann),I || 11i11101 00100010 alalalal ahahahah || 6 || 20 (4,4,3,3,3,3) || - || - || - || - || - || - || - || - || (Ann) := I
|}