using System; using System.Collections.Generic; using System.Reflection.Emit; using System.Linq; using System.Text; using System.Threading.Tasks; using Sunweaver.Commands.Attributes; using Sunweaver.VM; namespace Sunweaver.Commands { [BasePair(@"Peek at the boolean stack. If it's true, perform a ""call"" operation.")] public class branch : Abstracts.UnaryOperation { public override void Operation(long coduleID) { if (!VM.BoolStack.Peek()) { // if the bool stack is false, don't branch return; } call.CallOperation(VM, coduleID); } } }