intd. M=”-51 PROGRAMMER’SGUIDE AND INSTRUCTIONSET
RL A
Function:
Description:
Example:
Bytes:
Cycle=
Encoding:
Operation:
RLC A
Rotate Aecurn
ulator Left
Theeightbitsin the Aeeurmdatorare rotated onebit to the left. Bit 7 is rotated into the bit O
position.No flagsare akted.
The Aeeumulatorholdsthe valueOC5H(11OQO1O1B).Theinstruction,
RLA
leavesthe Accumulatorholdingthe value 8BH(1OOO1O11B)with the carry unaffected.
1
L
0010 0011
I
RL
(~ +
1)- (An) n = O– 6
(AO)+ (A7)
Function:
Description:
Example:
Bytes:
Cycle=
Encoding:
Operation:
Rotate Accum
ulator L-et?throughthe Carry flag
Theeightbitsin the Aeeumulatorand the carry tlagaretogetherrotated onebit to the left.Bit
7movesintothe carryflag;the originalstate ofthe carrytlagmovesintothe bit Oposition.No
other flagsare affeeted.
The Accumulatorholdsthe valueOC5H(110CHI101B),and the carry is zero.The instruction,
RLC A
leavesthe Accumulatorholdingthe value 8BH(1OOO1O1OB)with the carry set.
1
1
0011
0011
RLc
(An+ 1)~ (An)
n = O– 6
(AO)+ (C)
(C) +- (A7)
2-66