native functions do not write back result in output from temporary variables
Created by: mbonani
when using a single element of a buffer in a call function the result is not correctly address in memory and is is lost in a temp example code buffer2 should have be filled with 50 after executing and here it is not:
var i
var buffer[5]
var buffer2[5]
call math.fill(buffer,10)
call math.fill(buffer2,0)
for i in 0:4 do
call math.muldiv(buffer2[i],buffer[i],10,2)
end
it work using an single temp
var i
var buffer[5]
var buffer2[5]
var t
call math.fill(buffer,10)
call math.fill(buffer2,0)
for i in 0:4 do
call math.muldiv(t,buffer[i],10,2)
buffer2[i]=t
end