Syntax: CMA Byte: 1byte Addressing Mode: Implied Addressing Flag: None Working: 1. Microprocessor will allocate one byte for opcode. 2. During the execution of the instruction microprocessor will perform 1's complement on content of Accumulator. Example: CMA where [A] = 22H After execution of CMA [A] = DD H A= 22 H = 0010 0010 1's Complement of A = 1101 1101 = DD H
Syntax: RAR Byte: 1byte Addressing Mode: Implicit Addressing Working: 1. This is one byte instruction. 2. Microproccessor will allocate one byte for opcode RAR and operand is Accumulator i.e. operand will not need memory allocation during execution. 3. Thi s instruction rotates content of Accumulator one bit position towards Right. i.e. The bit A0 is stored in carry flag and content of carry flag will get stored in A7 bit position. 4. C Flag will get affected. Example: RAR where [A]= 21H After execution of RAR [A] = 90H A= 21 = 0010 0001 A7 -> A6 -> A5 -> A4 -> A3 -> A2 -> A1 -> A0 -> Cy |___<-____________________________<-________| 0 0 1 0 0 ...
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. Thi s 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...
Comments
Post a Comment