예제 #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;
        }
예제 #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);
        }
예제 #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);
            }
        }
예제 #4
0
 public ErrorLine(DrawParameters drawParameters, string text, int line, CodeViewTab parent)
     :
     base(drawParameters, text, parent)
 {
     mLine = line;
 }
예제 #5
0
 protected CodeViewLine(DrawParameters drawParameters, string text, CodeViewTab parent)
 {
     _drawParameters = drawParameters;
     Text            = text;
     _parent         = parent;
 }
예제 #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
예제 #7
0
 public ObjectCodeLine(DrawParameters drawParameters, uint address, uint hexContents, string contents, CodeViewTab parent)
     : base(drawParameters, contents, address, hexContents.ToString("X8"), parent)
 {
 }//ctor ObjectCodeLine
예제 #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
예제 #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
예제 #10
0
 public ListLine(DrawParameters drawParameters, string text, uint address, CodeViewTab parent)
     : base(drawParameters, text, parent)
 {
     Address      = address;
     addressValid = true;
 }//ctor lstLine
예제 #11
0
            private string hexContents = null; // hex contents of line

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