Explain IDIV instructions in 8086 family with example and their effect on flag.
IDIV: It used to divide a 16-bit signed number with an 8-bit signed no. or 32 bit signed number through a 16-bit signed number. This 32 bit dividend is placed into DX and AX registers. And the 16 bit divisor is placed into a given 16-bit register or memory locations. No flags are influenced.