Syntax: MVI Rd,8-bit Where Rd can be any of the general purpose registers (A,B,C,D,E,H andL) Byte: 2byte Addressing Mode: Immediate Addressing Example: MVI B,22H After execution of MVI B,22H [B] = 22H
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
Comments
Post a Comment