XRA
Syntax: XRA R
Where R can be any of the general purpose registers (A,B,C,D,E,H and L)
Byte: 1byte
Addressing Mode: Register Addressing
Working:
1.This is 1 byte instruction.
2. Microprocessor will allocate first byte for opcode during execution.
3.
During execution of this instruction, microprocessor will perform Logical XORing operation between content of Accumulator and operand register.
4. S, Z and P are modified. Cy and Ac are reset.Example: XRA B
where [B] = 52H
and [A]= 11H
After execution of XRA B
[A] = 43H
[B] = 22H
A= 11 = 0001 0001
B= 52 = 0101 0010
A=43 0100 0011
FLAG = 0000 0000 = 00H
Comments
Post a Comment