removed useless strlen from stdlib.sl

This commit is contained in:
IgorCielniak
2025-12-18 12:03:49 +01:00
parent 50451840b7
commit f684e56a70
14 changed files with 226 additions and 78 deletions

View File

@@ -26,16 +26,6 @@
}
;
# : strlen ( addr len -- len )
:asm strlen {
mov rax, [r12] ; addr
mov rcx, [r12 + 8] ; len
add r12, 16 ; pop len and addr
mov [r12], rcx ; push len
ret
}
;
:asm puts {
; detects string if top is len>=0 and next is a pointer in [data_start, data_end]
mov rax, [r12] ; len or int value