RR Rotate bits right with Carry

Rotate bits right with carry
Visualisation of the RRA instruction
76543210
 
RRA
000111111F
 
RR r
11001011CB
00011r
 
RR (HL)
11001011CB
000111101E
 
RR(IX+d)
11011101DD
11001011CB
d
000111101E
 
RR (IY+d)
11111101FD
11001011CB
d
000111101E
Registers
Registerr
B000
C001
D010
E011
H100
L101
A111
Flags Affected
Flags
sz-h-p/v-c
sset if result negative
zset if result is 0
hreset
p/vset if parity even, reset if parity odd
cdata from bit 0 of source register
Opcode Matrix
ABCDEHL(HL)(IX+d)(IY+d)
RR
RRA
1F14









RR
RR A
CB1F28
RR B
CB1828
RR C
CB1928
RR D
CB1A28
RR E
CB1B28
RR H
CB1C28
RR L
CB1D28
RR (HL)
CB1E215
RR (IX+d)
DDCBnn1E423
RR (IY+d)
FDCBnn1E423
Opcode Matrix Legend
Instruction Opcode hexSize bytesCycle count
 Register Memory

Last modified November 16, 2021: Add flags to rot operations (2eee171)