Use another language to call a function: Difference between revisions

Content added Content deleted
(Added Wren)
(It is what it is -_-)
Line 2,123: Line 2,123:
Here am I
Here am I
</pre>
</pre>

=={{header|X86-64 Assembly}}==
===UASM 2.52===
<lang asm>
option casemap:none

Query proto :qword, :qword

.data
szstr db "Here am I",0

.code
Query proc Data:qword, len:qword

mov r9, Data
mov r8, len
mov r10d, sizeof(szstr)
cmp r10, r8
ja _err
mov ecx, r10d
mov rdi, r9
mov rsi, offset szstr
rep movsb
mov rax, r8
mov dword ptr [rax], r10d
mov eax, 1
ret

_err:
mov rax,0
ret
Query endp
end
</lang>


=={{header|zkl}}==
=={{header|zkl}}==