예제 #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;
 }