Question
Download Solution PDFA software delay subroutine is written as given below:
DELAY: |
MVI |
H, 255 D |
|
MVI |
L, 255 D |
LOOP: |
DCR |
L |
|
JNZ |
LOOP |
|
DCR |
H |
|
JNZ |
LOOP |
Answer (Detailed Solution Below)
Detailed Solution
Download Solution PDFH & L registers initialized with 255 D (i.e. FFH)
(H) = 255 ⇒ (L) is decremented 255 times
(H) = 254 ⇒ (L) is decremented 256 times
(H) = 0 ⇒ Looping terminated.
No. of times execution of DCR L instruction = 255 + (256 × 254) = 65279
Last updated on May 28, 2025
-> UPSC ESE admit card 2025 for the prelims exam has been released.
-> The UPSC IES Prelims 2025 will be held on 8th June 2025.
-> The selection process includes a Prelims and a Mains Examination, followed by a Personality Test/Interview.
-> Candidates should attempt the UPSC IES mock tests to increase their efficiency. The UPSC IES previous year papers can be downloaded here.