using System; using System.Collections.Generic; using System.Text; using Sunweaver.Commands.Attributes; namespace Sunweaver.Commands { [Punctuation(@"Perform a ""branch"" operation with the given codule slot.")] public class ExplicitBranch : Commands.Label { public ExplicitBranch(string name, Int16 number) : base(name, number) { } public override void Implementation(Sunweaver.VM.VirtualMachine VM) { VM.Stack.Push(this.number); var branch = new branch(); branch.Implementation(VM); } public override string ToString() { if (Name != string.Empty) return "?" + Name; else return "?" + number.ToString(); } } }