Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
223 views
in Electronics by (102k points)
closed by

The following program is written for an 8085 microprocessor to add two bytes located at memory addresses IFFE and IFFF.

LXIH,

IFFE

MOV

B, M

INR

L

MOV

A, M

ADD

B

INR

L

MOV

M,A

XOR

A

On completion of the execution of the program, the result of the addition is found 


1. in the register A
2. at the memory address 1000
3. at the memory address IF00
4. at the memory address 2000

1 Answer

0 votes
by (101k points)
selected by
 
Best answer
Correct Answer - Option 3 : at the memory address IF00

Let the two bytes for addition are 02H that is stored at 1FFE  and 03H that is stored at 1FFF

Now,

LXI H, 1FFE  (H ← 1F, L ← FE)

MOV B, M (B ← 02 H)

INR L (H ← 1F, L ← FF)

MOV A, M (A ← 03 H)

ADD B ( A ← 03H + 02H = 05H)

INR L (H ← 1F, L ← 00)

MOV M, A (1FOO ← 05H)

XOR A (A ← 00H)

The result of the addition is thus stored in at the memory location 1F00

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

...