Flush output buffer waiting till all output is done

Entry:
AH = 08h
DX = port number