Rotate Instructions

How to decode rotate instructions from binary

Only four rotate instructions are defined in the main opcode set, all the rest require the CB prefix.

Opcode format
76543210
000FD111
 
00000111RLCA
00010111RLA
00000111RRCA
00011111RRA
F Carry Flag
InstructionF
With Carry0
Without Carry1
D Direction
InstructionD
Left0
Right1

Last modified November 16, 2021: Optimise decoding pages (f08ceb7)