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