Ejemplo n.º 1
0
        public WasmOpcodeExecutor Visit(I32Store16Opcode opcode, WasmFunctionState state)
        {
            var val = state.PopUI32();
            var adr = state.PopUI32();

            state.Memory.WriteUInt16(adr, opcode.Immediate, (ushort)val);
            return(this);
        }
Ejemplo n.º 2
0
        WasmNodeResult IWasmOpcodeVisitor <WasmNodeArg, WasmNodeResult> .Visit(I32Store16Opcode opcode, WasmNodeArg arg)
        {
            var value   = arg.Pop();
            var address = arg.Pop();

            arg.Push(new I32Store16Node(opcode.Immediate, address, value));
            return(null);
        }