Files
Zypherion-Technologies-UnCo…/MSILEmulator/Instructions/Logic/Or.cs
T
Adam - Zyph. Tech. e56a256c7b Add files via upload
2026-06-17 19:00:04 +02:00

20 lines
419 B
C#

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