This commit is contained in:
julianb0 2019-06-17 13:54:10 +02:00
parent dd911cc4f2
commit dbafbdb6e8
No known key found for this signature in database
GPG Key ID: 9C7ACF0C053FB8A1
1 changed files with 3 additions and 3 deletions

View File

@ -5,8 +5,9 @@
; void strcpy(char *, const char *) ; void strcpy(char *, const char *)
; ;
strcpy: strcpy:
mov ax2, STRLEN_MAX mov rcx, STRLEN_MAX
jmp strncpy movsb.rep.nz ax0, ax1
ret
; ;
; void strncpy(char *, const char *, int) ; void strncpy(char *, const char *, int)
@ -16,7 +17,6 @@ strncpy:
ret.cxz ret.cxz
movsb.rep.nz ax0, ax1 movsb.rep.nz ax0, ax1
ret ret
; ;