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

19 lines
353 B
C#

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