Q. Illustrate logical Data Processing Instructions?
AND, OR, NOT, XOR operate on binary data stored in registers. For illustration if two registers comprises data:
R1 = 1011 0111
R2 = 1111 0000
Then R1 and R2 = 1011 0000. So the AND operation can be used as a mask which selects certain bits in a word and zeros out remaining bits. With single register is set to all 1's the XOR operation inverts those bits in R1 register where R2comprise 1.
R1 XOR R2 = 0100 0111