public void InitPopulateList() { ushort resetAddr = nes.GetResetAddr(); int updateIndex = 0; for (ushort i = resetAddr; i < 0xFFFF; i++) { listBytes.Items.Add("0x" + ConvertHex(i)); listBytes.Items[updateIndex].SubItems.Add(ConvertHex(nes.Read8(i))); updateIndex += 1; } lblReset.Text = "0x" + Convert.ToString(resetAddr, 16); }
public void PrintByteAt(ushort address) { txtConsole.Text += "Memory at 0x" + ConvertHex(address) + ": " + ConvertHex(nes.Read8(address)); }