RLC
Syntax: RLC
Byte: 1byte
Addressing Mode: Implicit Addressing
Working:
1. This is one byte instruction.
2. Microproccessor will allocate one byte for opcode RLC and operand is Accumulator i.e. operand will not need memory allocation during execution.
3. This instruction rotates content of Accumulator one bit position towards left. i.e. The bit A7 is stored in bit position A0 as well as in carry flag.
4. C flag will get affected.
Example: RLC
where [A]= 21H
After execution of RLC
[A] =42H
A= 21 = 0010 0001
Cy <- A7<-A6<-A5<-A4<-A3<-A2<-A1<-A0
|___->__________________________->_|
0 0 1 0 0 0 0 1 .....(INITIAL BIT POSITIONS)
0 0 1 0 0 0 0 1 0
.....(RESULTANT BIT POSITIONS)
4 2
Comments
Post a Comment