GATE Exam  >  GATE Questions  >   Given an assembly language program in 8085 m... Start Learning for Free
Given an assembly language program in 8085 microprocessor,
LXI B, 2384 H
LOOP: DCX B
MOV A, C
ORA B
JNZ LOO
HLT
If the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.
  • a)
    108
  • b)
    110
Correct answer is between '108,110'. Can you explain this answer?
Verified Answer
Given an assembly language program in 8085 microprocessor,LXI B, 2384...
Number of T-states required = Count x Number of T states inside loop + Number of T states outside loop Number of T states when jump is invalid.
[Here, count in decimal (2384)16=(9092)10]
=(9092 × 24 )+ 16 − 3 = 218221 T-states
Clock frequency is 2MHz
T=1 / 2 ×106 = 0.5μsec
Total execution time =218221 × 0.5 × 10 − 6 = 0.10911sec
Hence, the time required for execution of the program is 109.11 msec.
View all questions of this test
Most Upvoted Answer
Given an assembly language program in 8085 microprocessor,LXI B, 2384...
Calculation of Execution Time:
1. Calculating the number of instructions:
- The given program has 8 instructions (including the loop).
- LXI B, DCX B, MOV A, MOV B, JNZ, and HLT each take 1 machine cycle.
- Therefore, the total number of machine cycles = 8.
2. Calculating the time for one machine cycle:
- The 8085 microprocessor operates at 2 MHz.
- Therefore, the time for one machine cycle = 1 / 2 MHz = 0.5 μs.
3. Calculating the total execution time:
- Total execution time = Total machine cycles * Time for one machine cycle
- Total execution time = 8 * 0.5 μs = 4 μs.
4. Converting microseconds to milliseconds:
- 1 millisecond = 1000 microseconds
- Therefore, the total execution time in milliseconds = 4 μs / 1000 = 0.004 ms.

Final Answer:
The time required for complete execution of the program is 0.004 milliseconds, which is equivalent to 4 microseconds. Hence, the correct answer is 4 microseconds or approximately between 108 and 110 milliseconds.
Explore Courses for GATE exam
Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer?
Question Description
Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? for GATE 2024 is part of GATE preparation. The Question and answers have been prepared according to the GATE exam syllabus. Information about Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? covers all topics & solutions for GATE 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer?.
Solutions for Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? in English & in Hindi are available as part of our courses for GATE. Download more important topics, notes, lectures and mock test series for GATE Exam by signing up for free.
Here you can find the meaning of Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer?, a detailed solution for Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? has been provided alongside types of Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Given an assembly language program in 8085 microprocessor,LXI B, 2384 HLOOP: DCX BMOV A, CORA BJNZ LOOHLTIf the system clock frequency is 2 MHz. The time required for complete execution of the program is _________ msec.a)108b)110Correct answer is between '108,110'. Can you explain this answer? tests, examples and also practice GATE tests.
Explore Courses for GATE exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev