- Write A Delay Loop With Appropriate Values Of The Count To Get A Delay Of 1 Second There Here Instructions Mov Bx N1 1 (162.18 KiB) Viewed 10 times
Write a delay loop with appropriate values of the count to get a delay of 1 second. THERE: HERE: Instructions MOV BX, N1
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Write a delay loop with appropriate values of the count to get a delay of 1 second. THERE: HERE: Instructions MOV BX, N1
Write a delay loop with appropriate values of the count to get a delay of 1 second. THERE: HERE: Instructions MOV BX, N1 MOV CX, N2 LOOP HERE DEC BX JNZ THERE Cycles 4 4 17 2 16 The inner loop is that which corresponds to the LOOP instruction. It repeats N2 times, which is the count in the CX register. The LOOP instruction plus a few overheads (caused by the instructions MOV CX, N2 and DEC BX) repeat N1 times, which is the count of the outer loop.