using System.Numerics; namespace Ryujinx.HLE.HOS.Tamper.Operations { class OpNot : IOperation where T : unmanaged, IBinaryNumber { readonly IOperand _destination; readonly IOperand _source; public OpNot(IOperand destination, IOperand source) { _destination = destination; _source = source; } public void Execute() { _destination.Set(~_source.Get()); } public static IOperation CreateFor(IOperand destination, IOperand lhs, IOperand rhs) where T1 : unmanaged, IBinaryInteger => new OpNot(destination, lhs); } }