diff --git a/src/string.asm b/src/string.asm index b7ce26e..4db8e4c 100644 --- a/src/string.asm +++ b/src/string.asm @@ -67,14 +67,14 @@ strcat: mov r8, rdi mov r9, rsi mov rdi, rsi - call strlen ;16 + call strlen mov rcx, rax mov rdi, r8 call strlen ;20 mov r10, rax mov rdi, r8 - add rcx, rax ;36 - cmp rcx, rdx ;36 <> 32 + add rcx, rax + cmp rcx, rdx cmova rcx, rdx cmp rcx, rdx jb .copy