public void Act(IntMachine machine, ReadOnlySpan <long> opData, ReadOnlySpan <byte> modes) { if (machine.MarshallAccess(opData[0], modes[0]) < machine.MarshallAccess(opData[1], modes[1])) { machine.Write(opData[2], modes[2], 1); } else { machine.Write(opData[2], modes[2], 0); } }
void IOp.Act(IntMachine machine, ReadOnlySpan <long> opData, ReadOnlySpan <byte> modes) { var input = machine.RequestOutput(); machine.Write(opData[0], modes[0], input); }
public async Task Act(IntMachine machine, long[] opData, byte[] modes) { var input = await machine.RequestOutputAsync(); machine.Write(opData[0], modes[0], input); }