include vcomm.inc
les dx, buf ;string to write in ES:DX
mov cx, cnt ;count in CX
cmp cx, 1
jne @F
mov di, dx
movzx si, byte ptr es:[di]
@@: mov ebx, hPort
mov ax, VCOMM_PM_API_WriteString ;function number
call [_VCOMMCallAddr]
Calls the _VCOMM_WriteComm service.
_VCOMM_WriteComm