private string LoadCustomRegister(int address) { string memory = GameBoyRevampedBLL.GetMemoryValue(address).Substring(2); int register = int.Parse(memory, NumberStyles.HexNumber, NumberFormatInfo.CurrentInfo); return(Convert.ToString(register, 2)); }
private void listView_RetrieveVirtualItem(object sender, RetrieveVirtualItemEventArgs e) { string index = "0x" + (e.ItemIndex + _offset).ToString("X4"); string value = GameBoyRevampedBLL.GetMemoryValue(e.ItemIndex + _offset); e.Item = new ListViewItem(new[] { index, value }); if (value != "0x00") { e.Item.BackColor = Color.CornflowerBlue; } else { e.Item.BackColor = Color.White; } }