All Exams Test series for 1 year @ ₹349 only
Question

What does the instruction ORA B do in 8085?

This question was previously asked in
RRB JE 2025 CBT 2 Mechanical and Allied Engg Question Paper English (2-Jul-2026) (Shift-1)
The correct answer is

Performs logical OR between accumulator and B

In the 8085 instruction set, ORA r stands for "logical OR the Accumulator with register r", performing a bit-by-bit (bitwise) OR and storing the result back in the accumulator. The operation is:

A ← A OR r

So ORA B means A ← A OR B: each bit of the accumulator is ORed with the corresponding bit of register B, and the answer replaces the contents of A. Recall the OR rule — a result bit is 1 if either input bit is 1, and 0 only when both are 0 (for example, 1010 OR 0110 = 1110). A common use is to set selected bits or to test a register for zero.

Flag effects: ORA is a logical instruction, so it clears the carry flag (CY = 0) and clears the auxiliary carry (AC = 0), while the Sign (S), Zero (Z) and Parity (P) flags are updated according to the result.

Why the other options are wrong: subtracting B from the accumulator is done by SUB B (or SBB with borrow), not ORA. Adding B to the accumulator is the job of ADD B. Performing a logical AND between the accumulator and B is ANA B, which keeps a bit only when both inputs are 1 — a different logic function. ORA B specifically carries out the logical OR operation.

Was this answer helpful?

Similar Questions

  1. What is the function of the INTA’ signal in the 8085 microprocessor?

  2. In the 8085 microprocessor, what will be the value of the Program Counter after execution of the instruction RST 3?

  3. In the 8085 microprocessor, what does the instruction PCHL do?

  4. Which instruction is used to return from a subroutine in 8085?

  5. In the 8085 microprocessor, what operation is performed by the instruction SUI 20H?


Important Questions from Instruction Set of 8085

  1. What is the function of the INTA’ signal in the 8085 microprocessor?

  2. In the 8085 microprocessor, what will be the value of the Program Counter after execution of the instruction RST 3?

  3. In the 8085 microprocessor, what does the instruction PCHL do?

  4. Which instruction is used to return from a subroutine in 8085?

  5. The execution of ORI instruction requires
Need Expert Advice?
Test Series
RRB JE img
Railways
RRB JE (CBT 1 + CBT 2) 2026 Mock Test Series
1515 Tests 19 Tests Free
1833 Attempts
4.3(163)
English, Hindi

Start Your Preparation with Prepp Mobile App

Download the app from Google Play & App Store
Download the app from Google Play & App Store
Prepp Mobile App