Hi Emil,
indexbase 0
function name() as string
string s = "i am string variable"
return s
end function
sub Main
char s[22], dword x
name
lea esi,s
mov edx,x
.m1 mov cl,[eax+edx]
mov [esi+edx],cl
inc edx
cmp edx,20
jnz m1
putfile "t.txt",s
End Sub
Main