Esempio n. 1
0
        void UpdateRow(int i)
        {
            DataGridViewRow row    = grdDisassembler.Rows[i];
            PPCOpCode       opcode = _relocations[i].Code;

            row.Cells[0].Value = PPCFormat.Offset(_baseOffset + (uint)i * 4);
            row.Cells[1].Value = opcode.Name;
            row.Cells[2].Value = opcode.GetFormattedOperands();

            row.DefaultCellStyle.BackColor = _relocations[i]._section.GetStatusColorFromIndex(_relocations[i]._index);
        }
Esempio n. 2
0
        public void UpdateRow(int i)
        {
            if (_codes == null)
            {
                return;
            }

            DataGridViewRow row    = grdDisassembler.Rows[i];
            PPCOpCode       opcode = _codes[i];

            int index = _sectionOffset / 4 + i;

            row.Cells[0].Value = PPCFormat.Offset(_baseOffset + _sectionOffset + (i * 4));
            row.Cells[1].Value = opcode.Name;
            row.Cells[2].Value = opcode.GetFormattedOperands();

            var s = _manager.GetTags(index);

            row.Cells[3].Value = s == null ? "" : String.Join("; ", s);

            row.DefaultCellStyle.BackColor = _manager.GetStatusColorFromIndex(index);
        }