/[RomCheater]/trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs
ViewVC logotype

Diff of /trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs

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

revision 642 by william, Sat Jun 8 21:58:23 2013 UTC revision 646 by william, Sat Jun 8 22:21:47 2013 UTC
# Line 104  namespace RomCheater.EmuMMAPPlugin Line 104  namespace RomCheater.EmuMMAPPlugin
104              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
105              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
106              #region memory maps              #region memory maps
107              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));            
108                maprange.Add(new MemMap("Kernel Memory", 0x00000000, 0x0000ffff));
109                maprange.Add(new MemMap("User Memory", 0x00010000, 0x001FFFFF));
110                maprange.Add(new MemMap("Parallel Port", 0x1f000000, 0x1f00ffff));
111                maprange.Add(new MemMap("Scratch Pad", 0x1f800000, 0x1f8003ff));
112                maprange.Add(new MemMap("HW Registers", 0x1f801000, 0x1f802fff));
113                maprange.Add(new MemMap("Kernel & User Memory (cached)", 0x80000000, 0x801fffff));
114                maprange.Add(new MemMap("Kernel & User Memory (uncached)", 0xa0000000, 0xa01fffff));
115                maprange.Add(new MemMap("BIOS", 0x1FC00000, 0x1FC7FFFF));
116              #endregion              #endregion
117              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
118              return map;              return map;
# Line 200  namespace RomCheater.EmuMMAPPlugin Line 208  namespace RomCheater.EmuMMAPPlugin
208          {          {
209              this.MapName = name;              this.MapName = name;
210          }          }
211          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"))) { }          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) { }
212          public MemMap(string name, string start, string end, string size)          public MemMap(string name, string start, string end, ulong size)
213              : this(name)              : this(name)
214          {          {
215              this.MapStart = start;              this.MapStart = start;
216              this.MapEnd = end;              this.MapEnd = end;
217              this.MapSize = size;              this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
218          }          }
219          #region IMappedMemRange Members          #region IMappedMemRange Members
220          public string MapName { get; private set; }          public string MapName { get; private set; }

Legend:
Removed from v.642  
changed lines
  Added in v.646

  ViewVC Help
Powered by ViewVC 1.1.22