Skip to content
Related Articles

Related Articles

Logical instructions in 8085 microprocessor
  • Difficulty Level : Easy
  • Last Updated : 22 May, 2018

Logical instructions are the instructions which perform basic logical operations such as AND, OR, etc. In 8085 microprocessor, the destination operand is always the accumulator. Here logical operation works on a bitwise level.

Following is the table showing the list of logical instructions:

OPCODEOPERANDDESTINATIONEXAMPLE
ANARA = A AND RANA B
ANAMA = A AND McANA 2050
ANI8-bit dataA = A AND 8-bit dataANI 50
ORARA = A OR RORA B
ORAMA = A OR McORA 2050
ORI8-bit dataA = A OR 8-bit dataORI 50
XRARA = A XOR RXRA B
XRAMA = A XOR McXRA 2050
XRI8-bit dataA = A XOR 8-bit dataXRI 50
CMAnoneA = 1’s compliment of ACMA
CMPRCompares R with A and triggers the flag registerCMP B
CMPMCompares Mc with A and triggers the flag registerCMP 2050
CPI8-bit dataCompares 8-bit data with A and triggers the flag registerCPI 50
RRCnoneRotate accumulator right without carryRRC
RLCnoneRotate accumulator left without carryRLC
RARnoneRotate accumulator right with carryRAR
RALnoneRotate accumulator left with carryRAR
CMCnoneCompliments the carry flagCMC
STCnoneSets the carry flagSTC

In the table,
R stands for register
M stands for memory
Mc stands for memory contents

Read related post: Arithmetic instructions in 8085 microprocessor

My Personal Notes arrow_drop_up
Recommended Articles
Page :