This instruction pops a value from the stack and sets it as a value for a local variable.
local.set $mylocal
global.set $myglobal
This instruction pops a value from the stack and sets it as a value for a local variable.
local.set $mylocal
global.set $myglobal