spaces to tabs for asm files

This commit is contained in:
nub31
2025-02-02 22:43:40 +01:00
parent d318c99792
commit c0798eff3d
6 changed files with 178 additions and 173 deletions

View File

@@ -2,19 +2,19 @@ global str_cmp
section .text
str_cmp:
xor rdx, rdx
xor rdx, rdx
.loop:
mov al, [rsi + rdx]
mov bl, [rdi + rdx]
inc rdx
cmp al, bl
jne .not_equal
cmp al, 0
je .equal
jmp .loop
mov al, [rsi + rdx]
mov bl, [rdi + rdx]
inc rdx
cmp al, bl
jne .not_equal
cmp al, 0
je .equal
jmp .loop
.not_equal:
mov rax, 0
ret
mov rax, 0
ret
.equal:
mov rax, 1
ret
mov rax, 1
ret