18 lines
185 B
PHP
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
|