/[RomCheater]/trunk/RomCheater/Docking/UI/UIMemoryViewer.cs
ViewVC logotype

Diff of /trunk/RomCheater/Docking/UI/UIMemoryViewer.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 256 by william, Sun Jun 3 16:50:16 2012 UTC revision 282 by william, Tue Jun 5 01:19:54 2012 UTC
# Line 87  namespace RomCheater.Docking.UI Line 87  namespace RomCheater.Docking.UI
87          public IConfigPlugin AcceptedPlugin { get; set; }          public IConfigPlugin AcceptedPlugin { get; set; }
88          #endregion          #endregion
89          #region IAcceptsMemoryRange members          #region IAcceptsMemoryRange members
90          public int MemoryStart { get { return 0; } }          public int MemoryStart { get { return MemorySizeConstants.MinimumAddress; } }
91          public uint MemorySize { get { return int.MaxValue; } }          public uint MemorySize { get { return MemorySizeConstants.MaximumAddress; } }
92          #endregion          #endregion
93          public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }          public void GotoTop() { this.CURRENT_TOP_ADDR = 0; }
94          public void GotoBottom() { uint size = (uint)MemorySize; this.CURRENT_TOP_ADDR = (int)((size - 1) - max_ram_view); }          public void GotoBottom() { uint size = (uint)MemorySize; this.CURRENT_TOP_ADDR = (int)((size - 1) - max_ram_view); }
# Line 141  namespace RomCheater.Docking.UI Line 141  namespace RomCheater.Docking.UI
141              int TotalHeight = txtData.Height;              int TotalHeight = txtData.Height;
142              int NumberOfBytes = (int)((TotalHeight / ByteHeight) * max_address_width);              int NumberOfBytes = (int)((TotalHeight / ByteHeight) * max_address_width);
143              int byte_width = (max_address_width * 2);              int byte_width = (max_address_width * 2);
144              max_ram_view = NumberOfBytes + (byte_width - 1);              max_ram_view = NumberOfBytes + (byte_width);
145          }          }
146          private void btnGotoAddress_Click(object sender, EventArgs e)          private void btnGotoAddress_Click(object sender, EventArgs e)
147          {          {

Legend:
Removed from v.256  
changed lines
  Added in v.282

  ViewVC Help
Powered by ViewVC 1.1.22