2 ; strecpy: Copy DS:SI -> ES:DI up to and including a null byte;
3 ; on exit SI and DI point to the byte *after* the null byte.
4 ; BP holds a pointer to the first byte beyond the end of the
5 ; target buffer; return with CF=1 if target buffer overflows;
6 ; the output is still zero-terminated.
19 cmp bp,di ; CF set if BP < DI
22 ; Zero-terminate overflow string
23 mov al,0 ; Avoid changing flags