How does this "LOOPW 0100" works ??
http://ece425web.groups.et.byu.net/stable/labs/8086InstructionSet.html
How does this "LOOPW 0100" works ??
http://ece425web.groups.et.byu.net/stable/labs/8086InstructionSet.html
Loop is a shortcut for
dec cx
jncxz label;
The w gives the operand size when using AT&T syntax (rather uncommon for x86). Since the "shortcut" is often faster than the loop instruction, loop is hardly used.