ORI

 

Syntax: ORI 8-bit
Where 8- bit is an immediate operand data.
Byte: 2byte
Addressing Mode: Immediate Addressing

Working: 
1.This is 2 byte instruction.
2. Microprocessor will allocate first byte for opcode and second byte for immediate data.
3. During execution of this instruction, microprocessor will perform Logical ORing operation between content of Accumulator and Immediate data.
4. S, Z, P are modified. Cy and Ac are reset (Cy = Ac= 0).

Example: ORI 22H
where [A]= 11H
After execution of ORI 22H
[A] = 33H
 
 
A= 11 =  0001 0001
 =  22 =  0010 0010
 A=33= 0011  0011
FLAG=0000 0100 = 04H

Comments

Popular posts from this blog

SUB

XRI