1. CMP: - (compare register or memory with accumulator) The contents of the operand  register or memory are M compared with the contents of the accumulator. Both contents are preserved . The result of the comparison is shown by setting the flags of the PSW as follows:

if (A) < reg/mem: carry flag is set.
if (A) = reg/mem:
zero flag is set.
if (A) > reg/mem: carry and zero flags are reset.

Eg: - CMP B
          CMP M


 2. CPI: - (compare immediate with accumulator) The second byte (8-bit data) is compared with the contents of the accumulator. The values being compared remain unchanged. The result of the comparison is shown by setting the flags of the PSW as follows:


if (A) < data: carry flag is set
if (A) = data: zero flag is set
if (A) > data: carry and zero flags are reset 

Eg: - CPI 89H



3. ANA: - logical AND operation is performed with the specified register or memory with accumulator.
Eg: - ANA B
          ANA M



4. ANI: - (AND operation with immediate data) AND operation is performed between accumulator and specified immediate data.

Eg: - ANI 30H




5.XRA: - The content of accumulator are exclusive OR with specified register or memory location.

Eg: - XRA B
          XRA M



6. XRI: - The content of accumulator are exclusive OR with the immediate data.

Eg: - XRI 30H




7. ORA: - Logical OR operation is performed between accumulator and specified register and memory location.

Eg: - ORA B
          ORA M



8. ORI: - Logical OR operation is performed between accumulator and immediate data.


Eg: -
ORI 30H

{ 12 comments... read them below or Comment }

  1. love this site keep up your work

    ReplyDelete
  2. After the execution of the instruction XRA A the contents of A, carry and zero flags are respectively
    a. A = 00, CY = 1, Z = 0
    b. A = 00, CY = 0, Z = 0
    c. A = 00, CY = 1, Z = 1
    d. A = 00, CY = 0, Z = 1



    Solve this question!

    ReplyDelete
  3. The instruction which is used to double the values of accumulator..
    A)XRA A
    B)ADD
    C)SUB
    D)ORA A

    ReplyDelete
  4. The answer is A .
    as I Eallier solved u could see how I made 00 to be in two places

    ReplyDelete
  5. The answer is A .
    as I Eallier solved u could see how I made 00 to be in two places

    ReplyDelete

Labels

- Copyright © 8085 Microprocessor -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -