RRC s |
Rotate right with branch carry s. |
Function: |
|
Format: |
s: may be r, n, (HL), (IX + d), or (IY + d) |
r |
|
byte 1: CB |
|
|
byte 2 |
(HL) |
|
byte 1: CB |
|
|
byte 2: 0E |
(IX + d) |
|
byte 1: DD |
|
|
|
byte 2: CB |
|
|
byte 3: offset data |
|
|
byte 4: 0E |
(IY + d) |
|
byte 1: FD |
|
|
byte 2: CB |
|
|
byte 3: offset data |
|
|
byte 4: 0E |
|
r may be any one of:
- A
- 111
- B
- 000
- C
- 001
- D
- 010
- E
- 011
- H
- 100
- L
- 101
|
Description: |
The contents of the location of the specified operand are rotated right and the result is stored back in the original location. The contents of bit 0 are moved to the carry flag as well as to bit 7. s is defined in the descriptions of the similar RLC instructions. |
Data Flow: |
|
Timing: |
s: |
M cycles: |
T states: |
usec @ 2 MHz: |
r
(HL)
(IX + d)
(IY + d) |
2
4
6
6 |
8
15
23
23 |
4
7.5
11.5
11.5 |
|
Addressing Mode: |
r: implicit; (HL): indirect; (IX + d), (IY+d): indexed. |
Byte Codes: |
RRC r
r: | A | B | C | D | E | H | L |
CB + | 0F | 08 | 09 | 0A | 0B | 0C | 0D |
---|
|
Flags: |
C is set by bit 0 of source data. |
Example: |
RRC (HL) |
OBJECT CODE |
Before: |
After: |
|
|