Ejemplo n.º 1
0
        private void updateRegistersPanel()
        {
            // clear all register rows
            this.registersDataGridView.Rows.Clear();

            // get registers names values and
            string[] registerNameArray = computer.getRegisterNames();
            uint[]   registersIntArray = computer.getRegistersIntArray();

            // add all registers to panel
            int regCount = registersIntArray.Length;

            for (int i = 0; i < regCount; i++)
            {
                this.registersDataGridView.Rows.Add(registerNameArray[i], registersIntArray[i].ToString("X").PadLeft(8, '0'));
            }
        }