Write a delay loop with appropriate values of the count to get a delay of 1 second. THERE: HERE: Instructions MOV BX, N1
Posted: Tue Jul 05, 2022 10:27 am
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.