Changes
Z80
,/* 8-bit ALU group */
| inc r || 00rrr100 || 1 || 4 (4) || + || + || + || + || + || V || 0 || - || r += 1 ||rowspan=4|Increment
|-
| inc p s || 11b11101 00ppp100 00sss100 || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || - || p s += 1
|-
| inc (hl) || 00110100 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 0 || - || (hl) += 1
| dec r || 00rrr101 || 1 || 4 (4) || + || + || + || + || + || V || 1 || - || r -= 1 ||rowspan=4|Decrement
|-
| dec p s || 11b11101 00ppp101 00sss101 || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || - || p s -= 1
|-
| dec (hl) || 00110101 || 3 || 11 (4,4,3) || + || + || + || + || + || V || 1 || - || (hl) -= 1
| add a,r || 10000rrr || 1 || 4 (4) || + || + || + || + || + || V || 0 || + || a += r ||rowspan=5|Add
|-
| add a,p s || 11b11101 10000ppp 10000sss || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || + || a += ps
|-
| add a,(hl) || 10000110 || 2 || 7 (4,3) || + || + || + || + || + || V || 0 || + || a += (hl)
| adc a,r || 10001rrr || 1 || 4 (4) || + || + || + || + || + || V || 0 || + || a += r + cf ||rowspan=5|Add with Carry
|-
| adc a,p s || 11b11101 10001ppp 10001sss || 2 || 8 (4,4) || + || + || + || + || + || V || 0 || + || a += p s + cf
|-
| adc a,(hl) || 10001110 || 2 || 7 (4,3) || + || + || + || + || + || V || 0 || + || a += (hl) + cf
| sub r || 10010rrr || 1 || 4 (4) || + || + || + || + || + || V || 1 || + || a -= r ||rowspan=5|Subtract
|-
| sub p s || 11b11101 10010ppp 10010sss || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || + || a -= ps
|-
| sub (hl) || 10010110 || 2 || 7 (4,3) || + || + || + || + || + || V || 1 || + || a -= (hl)
| sbc a,r || 10011rrr || 1 || 4 (4) || + || + || + || + || + || V || 1 || + || a -= r + cf ||rowspan=5|Subtract with Carry
|-
| sbc a,p s || 11b11101 10011ppp 10011sss || 2 || 8 (4,4) || + || + || + || + || + || V || 1 || + || a -= p s + cf
|-
| sbc a,(hl) || 10011110 || 2 || 7 (4,3) || + || + || + || + || + || V || 1 || + || a -= (hl) + cf
| and r || 10100rrr || 1 || 4 (4) || + || + || + || 1 || + || P || 0 || 0 || a := a and r ||rowspan=5|Logical AND
|-
| and p s || 11b11101 10100ppp 10100sss || 2 || 8 (4,4) || + || + || + || 1 || + || P || 0 || 0 || a := a and ps
|-
| and (hl) || 10100110 || 2 || 7 (4,3) || + || + || + || 1 || + || P || 0 || 0 || a := a and (hl)
| xor r || 10101rrr || 1 || 4 (4) || + || + || + || 0 || + || P || 0 || 0 || a := a xor r ||rowspan=5|Logical eXclusive OR
|-
| xor p s || 11b11101 10101ppp 10101sss || 2 || 8 (4,4) || + || + || + || 0 || + || P || 0 || 0 || a := a xor ps
|-
| xor (hl) || 10101110 || 2 || 7 (4,3) || + || + || + || 0 || + || P || 0 || 0 || a := a xor (hl)
| or r || 10110rrr || 1 || 4 (4) || + || + || + || 0 || + || P || 0 || 0 || a := a or r ||rowspan=5|Logical Inclusive OR
|-
| or p s || 11b11101 10110ppp 10110sss || 2 || 8 (4,4) || + || + || + || 0 || + || P || 0 || 0 || a := a or ps
|-
| or (hl) || 10110110 || 2 || 7 (4,3) || + || + || + || 0 || + || P || 0 || 0 || a := a or (hl)
| cp r || 10111rrr || 1 || 4 (4) || + || + || X || + || X || V || 1 || + || tmp := a - r, f5 := r.5, f3 := r.3 ||rowspan=5|Compare
|-
| cp p s || 11b11101 10111ppp 10111sss || 2 || 8 (4,4) || + || + || X || + || X || V || 1 || + || tmp := a - ps, f5 := p.5, f3 := p.3
|-
| cp (hl) || 10111110 || 2 || 7 (4,3) || + || + || X || + || X || V || 1 || + || tmp := a - (hl), f5 := (hl).5, f3 := (hl).3