ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/RomCheater/trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs
(Generate patch)

Comparing trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs (file contents):
Revision 642 by william, Sat Jun 8 21:58:23 2013 UTC vs.
Revision 644 by william, Sat Jun 8 22:15:48 2013 UTC

# Line 106 | Line 106 | namespace RomCheater.EmuMMAPPlugin
106              #region memory maps
107              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
108              #endregion
109 <            map = new DeviceMemoryMap(name, maprange);
109 >            maprange.Add(new MemMap("Kernel Memory", 0x00000000, 0x0000ffff));
110 >            maprange.Add(new MemMap("User Memory", 0x00010000, 0x001fffff));
111 >            maprange.Add(new MemMap("Parallel Port", 0x1f000000, 0x1f00ffff));
112 >            maprange.Add(new MemMap("Scratch Pad", 0x1f800000, 0x1f8003ff));
113 >            maprange.Add(new MemMap("HW Registers", 0x1f801000, 0x1f802fff));
114 >            maprange.Add(new MemMap("Kernel & User Memory (cached)", 0x80000000, 0x801fffff));
115 >            maprange.Add(new MemMap("Kernel & User Memory (uncached)", 0xa0000000, 0xa01fffff));
116 >            maprange.Add(new MemMap("BIOS", 0xbfc00000, 0xbfc7ffff));
117              return map;
118          }
119          #endregion
# Line 200 | Line 207 | namespace RomCheater.EmuMMAPPlugin
207          {
208              this.MapName = name;
209          }
210 <        public MemMap(string name, ulong start, ulong end) : this(name, string.Format("0x{0}", start.ToString("X")), string.Format("0x{0}", end.ToString("X")), string.Format("0x{0}", (end - start).ToString("X"))) { }
211 <        public MemMap(string name, string start, string end, string size)
210 >        public MemMap(string name, ulong start, ulong end) : this(name, string.Format("0x{0}", start.ToString("X")), string.Format("0x{0}", end.ToString("X")), end-start) { }
211 >        public MemMap(string name, string start, string end, ulong size)
212              : this(name)
213          {
214              this.MapStart = start;
215              this.MapEnd = end;
216 <            this.MapSize = size;
216 >            this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
217          }
218          #region IMappedMemRange Members
219          public string MapName { get; private set; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines