Question 45

INNAT2 marksNeeds review
A portion of an assembly language program written for an 8-bit microprocessor is given below along with explanations. The code is intended to introduce software time delay. The processor is driven by a 5 MHz clock. The time delay (in

s) introduced by the program is ______.
Instruction
Explanation
MVI B, 64H
Move immediate the given byte into register B. Takes 7 clock periods.
LOOP: DCR B
Decrement register B. Affects Flags. Takes 4 clock periods.
JNZ LOOP
Jump to address with Label LOOP if zero flag is not set. Takes 10 clock periods when jump is performed and 7 clock periods when jump is not performed.

Log in to check the answer

You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer

EXPLORE & PRACTISE

Paper and topic context

See where this question comes from and choose what to practise next.

2018IN

GATE IN 2018 · Paper 1

Instrumentation Engineering · Original paper archive

Section
Instrumentation Engineering
Question type
Numerical answer (NAT)
Marks
2 marks

Practise related topics

Explore more previous year questions using this question’s imported topic tags.

instrumentation

GATE IN previous year questions

measurement

GATE IN previous year questions

process control

GATE IN previous year questions

digital electronics

GATE IN previous year questions

Comments

Ask a question, share your approach, or help someone understand.

Log in to view the discussion

You’re not logged in. Log in or create an account to see discussions and add comments.