Explain LOOP instructions in 8086 family with example and their effect on flag.
LOOP: (Jump to given label until CX = 0) it is used to repeat a sequence of instructions for the given number of times. The no. of times the given sequence is to be repeated is stored in CX register. No flags are influenced.