scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

strcpy.s (227B)


      1 	.file 	"strcpy.s"
      2 
      3 	.text
      4 	.globl	strcpy,_strcpy
      5 
      6 strcpy:
      7 _strcpy:
      8 	movq	%rdi,%r9
      9 
     10 	movb	$0,%al
     11 	movq	$-1,%rcx
     12 	cld
     13 	movq	%rsi,%rdi
     14 	repne
     15 	scasb
     16 	movq	%rdi,%rcx
     17 	subq	%rsi,%rcx
     18 
     19 	movq	%r9,%rdi
     20 	mov	%rdi,%rax
     21 	rep;	movsb
     22 	ret