Files
MadMin3r-UnconfuserEx/MSILEmulator/Instructions/Logic/Not.cs
T
2023-03-01 23:18:47 +00:00

19 lines
348 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MSILEmulator.Instructions.Logic
{
internal class Not
{
public static void Emulate(Context ctx)
{
int val = (int)ctx.Stack.Pop();
ctx.Stack.Push(~val);
}
}
}