diff --git a/src/string.asm b/src/string.asm index 4563754..9205533 100644 --- a/src/string.asm +++ b/src/string.asm @@ -11,7 +11,7 @@ section .text ; rdi* (arg) Pointer to str[] ; rcx* Counter for scasb strlen: - xor rax, rax + xor al, al mov rcx, -1 cld repne scasb