RLC r

Operation

      n--------------m
n--m  | n---------m  |
|CY|<-T-|7<------0|<-u
v--u    v---------u
             r

Mnemonic

RLC

Operands

r

b7b6b5b4b3b2b1b0
1 1 0 0 1 0 1 1$CB
0 0 0 0 0 r

Description

The contents of register r are rotated left 1 bit position. The contents of bit 7 are copied to the Carry flag and also to bit 0. In the assembled object code, operand r is specified as fol- lows:

RegisterrHex
A111$07
B000$00
C001$01
D010$02
E011$03
H100$04
L101$05

Condition Bits Affected

Sis set if result is negative, otherwise it is reset.
Zis set if result is 0, otherwise it is reset.
His reset.
P/Vis set if parity even, otherwise it is reset
Nis reset.
Cis data from bit 7 of source register.

Example

Register B contains the following data:

76543210
10001000

Upon the execution of

	RLC	B

register B and the Carry Flag now contain:

C76543210
100010001