示例#1
0
        public void AddFunction(ulong refId)
        {
            Untrack();
            var unit = new InstructionUnit(refId);

            _units.Add(unit);
            _current = unit;
        }
示例#2
0
        public bool SelectFunction(ulong refId)
        {
            Untrack();

            foreach (var unit in _units)
            {
                if (unit.RefId != refId)
                {
                    continue;
                }
                _current = unit;
                return(true);
            }

            return(false);
        }
示例#3
0
 public void Untrack()
 {
     _current = null;
 }
示例#4
0
 public InstructionBase()
 {
     _units   = new List <InstructionUnit>();
     _current = null;
 }