Explain CWD instructions in 8086 family with example and their effect on flag.
Convert signed word to signed double word: CWD instruction enlarges the sign bit of a word into AX register to all the bits of the DX register. This is used before a signed word in AX is to be divided through another signed word by using IDIV instructions. No flags are influenced.