Exemple #1
0
        public CodeViewList(CodeViewTab parent)
        {
            InitializeComponent();

            _parent = parent;

            //this.BackColor = System.Drawing.Color.DarkGray;
            this.Dock                = System.Windows.Forms.DockStyle.Fill;
            this.DrawMode            = System.Windows.Forms.DrawMode.OwnerDrawFixed;
            this.Font                = new System.Drawing.Font("Courier New", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.HorizontalScrollbar = true;
            this.IntegralHeight      = true;
            //this.ItemHeight = 20;
            this.Location      = new System.Drawing.Point(0, 0);
            this.Name          = _parent.Name;
            this.SelectionMode = System.Windows.Forms.SelectionMode.None;
            this.Size          = new System.Drawing.Size(464, 304);
            this.TabIndex      = 0;
        }
Exemple #2
0
        public bool InitNormal(IList <ArmAssembly.ArmFileInfo> progInfo)
        {
            _errors = false;

            this.tabControl1.TabPages.Clear();

            foreach (ArmAssembly.ArmFileInfo pp in progInfo)
            {
                CodeViewTab tabPage = new CodeViewTab(pp, _JM);
                tabPage.CurrentFont             = this.CurrentFont;
                tabPage.CurrentHighlightColour  = this.CurrentHighlightColour;
                tabPage.CurrentTextColour       = this.CurrentTextColour;
                tabPage.CurrentBackgroundColour = this.CurrentBackgroundColour;
                //tabPage.init();

                this.tabControl1.TabPages.Add(tabPage);
            }
            //All breakpoint logic moved to sim engine
            //this.loadBreakpoints();
            return(true);
        }
Exemple #3
0
        public void InitErrors(IList <ArmAssembly.ArmFileInfo> progInfo)
        {
            _errors = true;

            this.tabControl1.TabPages.Clear();

            foreach (ArmAssembly.ArmFileInfo pp in progInfo)
            {
                if (pp == null)
                {
                    continue;
                }
                CodeViewTab tabPage = new CodeViewTab(pp, _JM);
                tabPage.CurrentFont             = this.CurrentFont;
                tabPage.CurrentHighlightColour  = this.CurrentHighlightColour;
                tabPage.CurrentTextColour       = this.CurrentTextColour;
                tabPage.CurrentBackgroundColour = this.CurrentBackgroundColour;
                tabPage.initErrors();

                this.tabControl1.Controls.Add(tabPage);
            }
        }
Exemple #4
0
 public ErrorLine(DrawParameters drawParameters, string text, int line, CodeViewTab parent)
     :
     base(drawParameters, text, parent)
 {
     mLine = line;
 }
Exemple #5
0
 protected CodeViewLine(DrawParameters drawParameters, string text, CodeViewTab parent)
 {
     _drawParameters = drawParameters;
     Text            = text;
     _parent         = parent;
 }
Exemple #6
0
            }//ctor ObjectCodeLine

            public ObjectCodeLine(DrawParameters drawParameters, uint address, string op, string operands, CodeViewTab parent)
                : base(drawParameters, String.Format("    {0,-6} {1}", op, operands), address, parent)
            {
            } //ctor ObjectCodeLine
Exemple #7
0
 public ObjectCodeLine(DrawParameters drawParameters, uint address, uint hexContents, string contents, CodeViewTab parent)
     : base(drawParameters, contents, address, hexContents.ToString("X8"), parent)
 {
 }//ctor ObjectCodeLine
Exemple #8
0
            }//ctor lstLine for ARM instruction

            public ListLine(DrawParameters drawParameters, string text, uint address, string hexContents, CodeViewTab parent)
                : base(drawParameters, text, parent)
            {
                Address          = address;
                this.hexContents = hexContents;
                if (hexContents.Length == 8)
                {
                    opcodeBytes = 4;
                }
                else if (hexContents.Length == 4)
                {
                    opcodeBytes = 2;
                }
                addressValid = true;
            }//ctor lstLine for ARM instruction
Exemple #9
0
            }//ctor lstLine

            public ListLine(DrawParameters drawParameters, string text, string hexContents, CodeViewTab parent)
                : base(drawParameters, text, parent)
            {
                this.hexContents = hexContents;
                addressValid     = false;
            }//ctor lstLine for ARM instruction
Exemple #10
0
 public ListLine(DrawParameters drawParameters, string text, uint address, CodeViewTab parent)
     : base(drawParameters, text, parent)
 {
     Address      = address;
     addressValid = true;
 }//ctor lstLine
Exemple #11
0
            private string hexContents = null; // hex contents of line

            public ListLine(DrawParameters drawParameters, string text, CodeViewTab parent)
                : base(drawParameters, text, parent)
            {
            }
Exemple #12
0
 //private readonly int col;
 public ErrorMsgLine(DrawParameters drawParameters, string errorMsg, CodeViewTab parent)
     : base(drawParameters, errorMsg, parent)
 {
     //this.col = col;
 }