clean: fix indentation

This commit is contained in:
starnakin 2024-09-03 10:28:47 +02:00
parent a5ccf7df95
commit 3632b34e40
4 changed files with 47 additions and 49 deletions

View File

@ -1,10 +1,9 @@
section .note.GNU-stack noalloc noexec nowrite progbits
section .text
section .text
global ft_strcmp
ft_strcmp:
ft_strcmp:
mov rcx, 0
loop:
loop:
mov dl, [rsi + rcx]
mov bl, [rdi + rcx]
@ -16,7 +15,7 @@ loop:
inc rcx
jmp loop
out:
out:
sub bl, dl
movsx rax, bl
ret

View File

@ -1,9 +1,9 @@
section .text
section .text
global ft_strcpy
ft_strcpy:
ft_strcpy:
mov rcx, 0
loop:
loop:
mov al, [rsi + rcx]
mov [rdi + rcx], al
@ -14,6 +14,6 @@ loop:
inc rcx
jmp loop
out:
out:
mov rax, rdi
ret

View File

@ -1,13 +1,13 @@
section .text
section .text
global ft_strlen
ft_strlen:
ft_strlen:
mov rcx, 0
loop:
loop:
cmp BYTE [rdi + rcx], 0
je out
inc rcx
jmp loop
out:
out:
mov rax, rcx
ret

View File

@ -1,7 +1,6 @@
section .text
section .text
global ft_write
ft_write:
ft_write:
mov rax, 1
syscall
ret