mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
str
This commit is contained in:
parent
dd911cc4f2
commit
dbafbdb6e8
@ -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
|
||||||
|
|
||||||
;
|
;
|
||||||
|
Loading…
Reference in New Issue
Block a user