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

20 lines
406 B
C#

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