RLCΒΆ
- RLC M
- Rotate Left Circular
- Description
- Performs a left shift on
M
; the 7th bit ofM
is copied into the carry and into the 0th bit ofM
. - Uses
- Retrieving consecutive bits of a byte in a loop, starting from the left, without affecting the source data (after eight iterations
- Results
Register/Flag 8-bit M
S
flagSet if the result is negative; else reset Z
flagSet if the result is 0; else reset H
flagReset P/V
flagSet if the result has even parity; else reset N
flagReset C
flag7th bit of M
- Allowed Instructions
Instruction Opcode CC (ADL/non-ADL) CC (.S) CC (.L) rlc a $CB, $07 2F X X rlc b $CB, $00 2F X X rlc c $CB, $01 2F X X rlc d $CB, $02 2F X X rlc e $CB, $03 2F X X rlc h $CB, $04 2F X X rlc l $CB, $05 2F X X rlc (hl) $CB, $06 2F + 1R + 1W + 1 3F + 1R + 1W + 1 3F + 1R + 1W + 1 rlc (ix+n) $DD, $CB, n, $06 4F + 1R + 1W + 1 5F + 1R + 1W + 1 5F + 1R + 1W + 1 rlc (iy+n) $FD, $CB, n, $06 4F + 1R + 1W + 1 5F + 1R + 1W + 1 5F + 1R + 1W + 1 - Notes
- Unlike
RL
, the initial state of the carry flag has no effect on the result of this instruction.
- Unlike
- See Also
- RL, RLCA, RRC, SLA