Electronics and Communication Engineering (ECE) Exam  >  Electronics and Communication Engineering (ECE) Questions  >  LX I B,2384HLOOP: DCX B Clock frequencyMOV A,... Start Learning for Free
LX I B,2384H
LOOP:    DCX B    Clock frequency
MOV A, C               is 2 MHz.
ORAB
JNZ LOOP
The delay provided by above set of instructions, neglecting delay due to LXI instruction is    _____________msec
  • a)
    201
  • b)
    109
  • c)
    501
  • d)
    105
Correct answer is 'B'. Can you explain this answer?
Verified Answer
LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ...
The loop includes four instructions DCX, MOV, ORA, and JNZ takes 24 clocks (6 + 4 + 4 + 10) for execution. The loop is repeated 2384H times. Which is converted to decimal as
it will be executed 2383H times completely and 1 time partially as condition becomes false f = 2 MHz.
 
View all questions of this test
Most Upvoted Answer
LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ...
Given Information:
- LXI B, 2384H - This instruction loads the value 2384H into the register pair BC.
- LOOP: DCX B - This instruction decrements the register pair BC by 1.
- Clock frequency of MOV A, C is 2 MHz.
- ORA - This instruction performs a logical OR of the accumulator with the operand.
- JNZ LOOP - This instruction jumps to the label LOOP if the zero flag is not set.

Calculating the Delay:
To calculate the delay, we need to find the number of clock cycles required for each instruction and multiply it by the clock period.

1. LXI B, 2384H:
- This instruction requires 10 cycles to load a 16-bit value into BC.
- The clock period is the inverse of the clock frequency, which is 1/2 MHz = 0.5 microseconds.
- Therefore, the delay caused by this instruction is 10 * 0.5 microseconds = 5 microseconds.

2. LOOP: DCX B:
- This instruction requires 5 cycles to decrement the register pair BC by 1.
- The delay caused by this instruction is 5 * 0.5 microseconds = 2.5 microseconds.

3. MOV A, C:
- This instruction requires 5 cycles to move the value from register C to the accumulator.
- The delay caused by this instruction is 5 * 0.5 microseconds = 2.5 microseconds.

4. ORA:
- This instruction requires 4 cycles to perform a logical OR of the accumulator with the operand.
- The delay caused by this instruction is 4 * 0.5 microseconds = 2 microseconds.

5. JNZ LOOP:
- This instruction requires 10 cycles if the zero flag is not set, and 7 cycles if the zero flag is set.
- Since the zero flag is not set in this case, we consider the delay as 10 * 0.5 microseconds = 5 microseconds.

Total Delay:
The total delay is the sum of the delays caused by each instruction:
5 microseconds + 2.5 microseconds + 2.5 microseconds + 2 microseconds + 5 microseconds = 17 microseconds.

Therefore, the delay provided by the given set of instructions, neglecting the delay due to the LXI instruction, is 17 microseconds.
Attention Electronics and Communication Engineering (ECE) Students!
To make sure you are not studying endlessly, EduRev has designed Electronics and Communication Engineering (ECE) study material, with Structured Courses, Videos, & Test Series. Plus get personalized analysis, doubt solving and improvement plans to achieve a great score in Electronics and Communication Engineering (ECE).
Explore Courses for Electronics and Communication Engineering (ECE) exam

Top Courses for Electronics and Communication Engineering (ECE)

LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer?
Question Description
LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? for Electronics and Communication Engineering (ECE) 2024 is part of Electronics and Communication Engineering (ECE) preparation. The Question and answers have been prepared according to the Electronics and Communication Engineering (ECE) exam syllabus. Information about LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? covers all topics & solutions for Electronics and Communication Engineering (ECE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer?.
Solutions for LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? in English & in Hindi are available as part of our courses for Electronics and Communication Engineering (ECE). Download more important topics, notes, lectures and mock test series for Electronics and Communication Engineering (ECE) Exam by signing up for free.
Here you can find the meaning of LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer?, a detailed solution for LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? has been provided alongside types of LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice LX I B,2384HLOOP: DCX B Clock frequencyMOV A, C is 2 MHz.ORABJNZ LOOPThe delay provided by above set of instructions, neglecting delay due to LXI instruction is _____________mseca)201b)109c)501d)105Correct answer is 'B'. Can you explain this answer? tests, examples and also practice Electronics and Communication Engineering (ECE) tests.
Explore Courses for Electronics and Communication Engineering (ECE) exam

Top Courses for Electronics and Communication Engineering (ECE)

Explore Courses
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