aboutsummaryrefslogtreecommitdiffstats
path: root/strcpy.inc
blob: 2bafa7feb61066c14227c6edad607c03e82fac78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
;
; 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