Practice over 1000+ GATE-level questions from this topic!
Designed to match the latest GATE pattern with topic-wise precision, difficulty tagging, and detailed solutions.
An 8085 assembly language program is given below:

Contents of the memory locations 2000 H to 2002H are:
2000 : 18 H 2001 : 10H 2002 : 2BH
(a) What does the above program do?
(b) At the end of the program, what will be
(i) The contents of the registers A, B, C ,H and L?
(ii) The condition of the carry and zero flags?
(iii) The contents of the memory locations 2000 H, 2001 H , 2002 H and 2100 H.
This program will find the highest number among all the three memory locations present in the given memory location, finally that highest number will present in the accumulator which will then be stored at the memory location 2100H.
This program will find the lowest number among all the three memory locations present in the given memory location, finally that lowest number will present in the accumulator which will then be stored at the memory location 2100H.
A = 2BH
B = 2BH
C = 00H
HL = 2002H
CY=1 and Z = 1
2000H : 18H
2001H : 10H
2002H : 2BH
2100H : 2BH
Explanation Locked!
Unlock this branch to view the explanation, track, bookmark and more.
Sign in to Unlock