This the multi-page printable view of this section.Click here to print.

Return to the regular view of this page.

Rotate Instructions

How to decode rotate instructions from binary

Table of Contents

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