Beispiel #1
0
        public AsmFile(string aPathname) {
            using (var xReader = new StreamReader(aPathname)) {
                while (!xReader.EndOfStream) {
					AsmLine line = new AsmLine(xReader.ReadLine());
					if (line.ToString().Length == 0)
						continue;
					if (line.IsLabel)
					{
						mLabels.Add(line.Label, mLines.Count);
					}
					mLines.Add(line);

                }
            }
        }
Beispiel #2
0
 public AsmFile(string aPathname)
 {
     using (var xReader = new StreamReader(aPathname)) {
         while (!xReader.EndOfStream)
         {
             AsmLine line = new AsmLine(xReader.ReadLine());
             if (line.ToString().Length == 0)
             {
                 continue;
             }
             if (line.IsLabel)
             {
                 mLabels.Add(line.Label, mLines.Count);
             }
             mLines.Add(line);
         }
     }
 }
Beispiel #3
0
        protected override void OnMouseMove(MouseEventArgs e)
        {
            base.OnMouseMove(e);

            Point p = base.PointToClient(Cursor.Position);

            if (this.mCache == null)
            {
                return;
            }
            var item = base.GetItemAt(p.X, p.Y);

            if (item == null)
            {
                return;
            }
            int index = item.Index;

            if (index > -1)
            {
                if (index != mLastIndex)
                {
                    AsmLine line = (AsmLine)mItems[index];

                    if (line.GDBLine != null)
                    {
                        this.mToolTip.SetToolTip(this, line.GDBLine);
                        mLastIndex = index;
                    }
                    else
                    {
                        ResetToolTip();
                    }
                }
            }
            else
            {
                ResetToolTip();
            }
        }