mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-11 21:16:44 +00:00
20 lines
434 B
C#
20 lines
434 B
C#
|
namespace Ryujinx.HLE.HOS.Tamper.Operations
|
||
|
{
|
||
|
class OpNot<T> : IOperation where T : unmanaged
|
||
|
{
|
||
|
IOperand _destination;
|
||
|
IOperand _source;
|
||
|
|
||
|
public OpNot(IOperand destination, IOperand source)
|
||
|
{
|
||
|
_destination = destination;
|
||
|
_source = source;
|
||
|
}
|
||
|
|
||
|
public void Execute()
|
||
|
{
|
||
|
_destination.Set((T)(~(dynamic)_source.Get<T>()));
|
||
|
}
|
||
|
}
|
||
|
}
|