RAL
Syntax: RAL
Byte: 1byte
Addressing Mode: Implicit Addressing
Working:
1. This is one byte instruction.
2. Microproccessor will allocate one byte for opcode RAL 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 carry flag and content of carry flag will get stored in A0 bit position.
4. C Flag will get affected.
Example: RAL
where [A]= 21H
After execution of RAL
[A] =43H
A= 21 = 0010 0001
Cy <- A7 <- A6 <- A5 <- A4 <- A3 <- A2 <- A1 <- A0
|___->____________________________->________|
1 0 0 1 0 0 0 0 1 .....(INITIAL BIT POSITIONS)
0 0 1 0 0 0 0 1 1
.....(RESULTANT BIT POSITIONS)
4 3
Comments
Post a Comment