working kinda

This commit is contained in:
nub31
2025-02-02 20:12:20 +01:00
parent 2b5969cf99
commit 9719cd4426
7 changed files with 250 additions and 47 deletions

View File

@@ -0,0 +1,20 @@
global str_cmp
section .text
str_cmp:
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
.not_equal:
mov rax, 0
ret
.equal:
mov rax, 1
ret