Пример #1
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32Load16SOpcode opcode, WasmNodeArg arg)
        {
            var address = arg.Pop();

            arg.Push(new I32Load16SNode(opcode.Immediate, address));
            return(null);
        }
Пример #2
0
        public WasmOpcodeExecutor Visit(I32Load16SOpcode opcode, WasmFunctionState state)
        {
            var adr = state.PopUI32();
            var val = state.Memory.ReadSInt16(adr, opcode.Immediate);

            state.PushSI32(val);
            return(this);
        }