diff options
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Tamper/Operations/OpNot.cs')
| -rw-r--r-- | src/Ryujinx.HLE/HOS/Tamper/Operations/OpNot.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/Ryujinx.HLE/HOS/Tamper/Operations/OpNot.cs b/src/Ryujinx.HLE/HOS/Tamper/Operations/OpNot.cs new file mode 100644 index 00000000..8a97c3fe --- /dev/null +++ b/src/Ryujinx.HLE/HOS/Tamper/Operations/OpNot.cs @@ -0,0 +1,19 @@ +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>())); + } + } +} |
