RL r

Operation

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

Mnemonic

RL

Operands

r

b7b6b5b4b3b2b1b0
1 1 0 0 1 0 1 1$CB
0 0 0 1 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 the previous contents of the Carry flag are copied to bit 0. In the assembled object code, operand r is specified as follows:

RegisterrHex
A111$17
B000$10
C001$11
D010$12
E011$13
H100$14
L101$15

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 D and the Carry flag contains the following data:

C76543210
010001111

Upon the execution of

	RL	D

register D and the Carry Flag now contain:

C76543210
100011110