zero AL, not RAX in strlen() (SCASB uses AL, so no need to zero all bits)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user