WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I64Load16SOpcode opcode, WasmNodeArg arg) { var address = arg.Pop(); arg.Push(new I64Load16SNode(opcode.Immediate, address)); return(null); }
public WasmOpcodeExecutor Visit(I64Load16SOpcode opcode, WasmFunctionState state) { var adr = state.PopUI32(); var val = state.Memory.ReadSInt16(adr, opcode.Immediate); state.PushSI64(val); return(this); }