Exemplo n.º 1
0
        public JumpLabel CreateLabel()
        {
            JumpLabel newLabel = new JumpLabel();

            _jumpLabels.Add(newLabel);

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

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