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: 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: STA 16-bit Where 16-bit is for memory location. Byte: 3byte Addressing Mode: Direct Addressing Working: for execution of this instruction, microprocessor will allocate first byte for opcode, second byte for lower order address and third byte for higher order address. After execution, the content of Accumulator will be moved to the given address. Example: STA 2000H where [A]= A0 H After execution of STA 2000H [2000H]= A0 H
Comments
Post a Comment