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
Syntax: INR R Where R can be any of the general purpose registers (A,B,C,D,E,H andL) Byte: 1byte Addressing Mode: Register Addressing Working: 1. 2. 3. 4. Flag Example: INR B Where [B]= 10H After execution of INR B [B]= 11H
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