public JumpLabel CreateLabel() { JumpLabel newLabel = new JumpLabel(); _jumpLabels.Add(newLabel); return(newLabel); }
public void LabelJump(JumpLabel label) { if (label.Address != uint.MaxValue) { throw new ArgumentException("Label has already been set"); } label.Address = _currentAddress; }
public void AddJumpIfFalse(JumpLabel jumpTarget, Value conditionValue) { AddInstruction(new JumpIfFalseInstruction(jumpTarget, conditionValue)); }
public void AddJump(JumpLabel jumpTarget) { AddInstruction(new JumpInstruction(jumpTarget)); }