Hi Emil, Peter,
the '=' operator usually translates to something like this
a=b
---->
mov eax,b
mov a,eax
copy is a built-in function and works on the var address or strpr for strings
'copying from b to a , n bytes:
copy @a,@b,n
or
copy &a,&b,n
Using Oxygen Asm with block feature:
zstring a[]="ABCDE"
zstring b[]="12345"
sys n=len a
mycopy:
addr esi,b
addr edi,a
mov ecx,n
(
dec ecx
jl exit
mov al,[esi]
mov [edi],al
inc esi
inc edi
repeat
)
print b
NB: I noticed that addr does not handle bstrings and strings correctly, so I will add the mod to my next release.
zstrings / char is ok
Charles