Exemple #1
0
        public JumpLabel CreateLabel()
        {
            JumpLabel newLabel = new JumpLabel();

            _jumpLabels.Add(newLabel);

            return(newLabel);
        }
Exemple #2
0
        public void LabelJump(JumpLabel label)
        {
            if (label.Address != uint.MaxValue)
            {
                throw new ArgumentException("Label has already been set");
            }

            label.Address = _currentAddress;
        }
Exemple #3
0
 public void AddJumpIfFalse(JumpLabel jumpTarget, Value conditionValue)
 {
     AddInstruction(new JumpIfFalseInstruction(jumpTarget, conditionValue));
 }
Exemple #4
0
 public void AddJump(JumpLabel jumpTarget)
 {
     AddInstruction(new JumpInstruction(jumpTarget));
 }