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: LDAX Rhp Where Rhp is higher order register the pair. (HL, BC or DE) Byte: 1byte Addressing Mode: Register Indirect Addressing Working: for execution of this instruction, microprocessor will allocate first byte for opcode and the operand is register which don't need allocation. Example: LDAX B where [C]= 50H [B] = 20 H [2050H]= 88H After execution of LDAX B [A]= 88 H
Syntax: CMC Byte: 1byte Addressing Mode: Implied Addressing Flag: Carry Working: 1. Microprocessor will allocate one byte for opcode for execution. 2. During the execution of the instruction microprocessor will complement or perform 1's complement on content of Carry flag. Example: CMC where [Cy] = set = 1 After execution of CMC [Cy] = 0
Comments
Post a Comment