diff options
Diffstat (limited to 'ft_strcpy.s')
| -rw-r--r-- | ft_strcpy.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ft_strcpy.s b/ft_strcpy.s new file mode 100644 index 0000000..44a098d --- /dev/null +++ b/ft_strcpy.s @@ -0,0 +1,11 @@ +_ft_strcpy: + pop ax + pop bx + mov ecx, eax ; copy + FT_STRCPY_LOOP: + mov [ecx], ebx + inc ebx + inc ecx + cmp ebx, 0 + jneq FT_STRCPY_LOOP + ret |
