Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2025 Foundation Course
NEET 2025 Foundation Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
2.7k views
in Electronics by (238k points)
closed by
In an 8085 microprocessor, after the execution of XRA A instruction
1. the carry flag is set
2. the accumulator contains FFH
3. the zero flag is set
4. the accumulator contents are shifted left by one bit

1 Answer

0 votes
by (240k points)
selected by
 
Best answer
Correct Answer - Option 3 : the zero flag is set

Concept:

  • In 8085 Instruction, XRA is a mnemonic that stands for “eXclusive OR Accumulator” and “R” stands for any of the following registers, or memory location M pointed by HL pair.
  • R = A, B, C, D, E, H, L, or M
  • This instruction is used to Ex-OR contents of R with the Accumulator. The result of the Ex-OR operation will be stored in the Accumulator.
  • As R can have any of the eight values, there are eight opcodes for this type of instruction. It occupies only 1-Byte in memory.

 

e.g. MVI A, 05 H

XRA A

(0000 0101) EXOR (0000 0101) = (0000 0000)

Application:

The accumulator contains 00 H after the execution of an instruction

And Zero flag is set

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...