|-
| swap (hl) || CB 00110110 || 4 || (hl) := ((hl) << 4) + ((hl) >> 4)
|}
=== Bitwise group ===
{| class="wikitable" style="white-space: nowrap;"
|-
! Instruction !! Opcode !! Cycles !! Z !! H !! N !! C !! Effect !! Description
|-
| bit b,r || CB 01bbbrrr || 2 || rowspan=2|+ || rowspan=2|1 || rowspan=2|0 || rowspan=2|- || tmp := r and [1 << b] ||rowspan=2|Test Bit
|-
| bit b,(hl) || CB 01bbb110 || 3 || tmp := (hl) and [1 << b]
|-
| res b,r || CB 10bbbrrr || 2 || rowspan=2|- || rowspan=2|- || rowspan=2|- || rowspan=2|- || r := r and ~[1 << b] ||rowspan=2|Reset Bit
|-
| res b,(hl) || CB 10bbb110 || 4 || (hl) := (hl) and ~[1 << b]
|-
| set b,r || CB 11bbbrrr || 2 || rowspan=2|- || rowspan=2|- || rowspan=2|- || rowspan=2|- || r := r or [1 << b] ||rowspan=2|Set Bit
|-
| set b,(hl) || CB 11bbb110 || 4 || (hl) := (hl) or [1 << b]
|-
| cpl || 00101111 || 1 || - || 1 || 1 || - || a := ~a || Complement
|}