Logical Group Instruction ,8085 Instruction



c) Logic, 

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
1) ANA R/M
·         1 byte instruction
·         Logically AND the content of specified register memory with the content of accumulator.
·         CY flag is reset & AC is set others as per result.
2) ANI 8 bit data
·         byte instruction
·         Logically AND immediate 8 bit data .with the content of accumulator.
·         CY flag is reset & AC is set others as per result
3)ORA R/M
·         1 byte instruction
·         Logically OR the content of specified register memory with the content of accumulator.
·         CY flag & AC flag reset others as per result.
4)ORI 8 bit data
·         -2 byte instruction
·         Logically OR the immediate 8 bit data with the content of accumulator.
·         CY flag & AC flag reset ,other as per result
5)XRa R/M
·         1 byte instruction
·         Logically Xor the content of specified register memory with the content of accumulator
·         CX flag & AC flag reset others as per instruction
6)XRI 8 bit data
·         byte instruction
·         Logically Xor the imiidiate 8 bit data with the content os gthe accumulator
·         CY flag & AC flag ,others as per the result.
7)CMA (complement accumulator)
·         1 byte instruction
·         Compares the content of accumulator
·         No flag s are affected
Instructions
CY
RC
ANA/ANI
0
1
ORA/ORI
0
0
XRA//XRI
0
0
8)CMC (Complement Carry)
·         1 byte instructions
·         Complement the content of the flag register.
9)STC (Set Carry)
·         1 byte instruction
Seta s the carry flag bit to active high

No comments:

Post a Comment

its cool