more renaming

This commit is contained in:
nub31
2025-05-05 19:26:23 +02:00
parent e5b7982d37
commit bfaad0950b
50 changed files with 25 additions and 7 deletions

30
src/runtime/runtime.asm Normal file
View File

@@ -0,0 +1,30 @@
global _start
extern main, gc_init
section .text
_start:
call gc_init
call main
mov rax, 60
mov rdi, 0
syscall
global nub_strcmp
section .text
nub_strcmp:
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