Fix spacing

This commit is contained in:
nub31
2025-01-26 22:24:16 +01:00
parent 5e414ce09b
commit 880c85d296

View File

@@ -75,10 +75,10 @@ public class Generator
xor rcx, rcx xor rcx, rcx
strlen_next: strlen_next:
cmp [rdi], byte 0 ; null byte yet? cmp [rdi], byte 0 ; null byte yet?
jz strlen_null ; yes, get out jz strlen_null ; yes, get out
inc rcx ; char is ok, count it inc rcx ; char is ok, count it
inc rdi ; move to next char inc rdi ; move to next char
jmp strlen_next ; process again jmp strlen_next ; process again
strlen_null: strlen_null:
mov rax, rcx ; rcx = the length (put in rax) mov rax, rcx ; rcx = the length (put in rax)
pop rcx ; restore rcx pop rcx ; restore rcx