Home > Electronic Tutorials > Microprocessor Tutorials (8085/8085A) > 8085 / 8085A Logical Group Instructions

Microprocessor Tutorials (8085/8085A)

8085 / 8085A
Logical Group Instructions

Logical Group:

This group performs logical (Boolean) operations on data in registers and memory and on condition flags. The logical AND, OR, and Exclusive OR instructions enable you to set specific bits in the accumulator ON or OFF.

ANA - Logical AND with Accumulator

ANI - Logical AND with Accumulator Using Immediate Data

ORA - Logical OR with Accumulator

OR - Logical OR with Accumulator Using Immediate Data

XRA - Exclusive Logical OR with Accumulator

XRI - Exclusive OR Using Immediate Data

The Compare instructions compare the content of an 8-bit value with the contents of the accumulator;          

CMP - Compare

CPI - Compare Using Immediate Data

The rotate instructions shift the contents of the accumulator one bit position to the left or right:

RLC - Rotate Accumulator Left

RRC - Rotate Accumulator Right

RAL - Rotate Left Through Carry

RAR - Rotate Right Through Carry

Complement and carry flag instructions:

CMA - Complement Accumulator

CMC - Complement Carry Flag

STC - Set Carry Flag

Note: To report broken links or to submit your projects please send email to Webmaster

Discover

     more......