blob: 5068a8ebff9c5bd84deffc0090cf7568a8367fa6 [file] [log] [blame]
;
; strcpy: Copy DS:SI -> ES:DI up to and including a null byte;
; on exit SI and DI point to the byte *after* the null byte
;
section .text
strcpy: push ax
.loop: lodsb
stosb
and al,al
jnz .loop
pop ax
ret