zombie-core-utils/inc/length_func.inc
2021-10-02 18:48:39 -04:00

18 lines
185 B
PHP

length_func:
mov r10, rdi
xor r9, r9
_loop67865432:
mov r9, [rdi]
cmp r9, 0
jz _exitloop4323567
inc rdi
jmp _loop67865432
_exitloop4323567:
sub rdi, r10
mov rax, rdi
ret