/[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 641 by william, Sat Jun 8 21:50:28 2013 UTC revision 643 by william, Sat Jun 8 22:06:24 2013 UTC
# Line 117  namespace RomCheater.EmuMMAPPlugin Line 117  namespace RomCheater.EmuMMAPPlugin
117              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
118              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
119              #region memory maps              #region memory maps
120              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
121                maprange.Add(new MemMap("EE Kernel", 0x80000000, 0x800FFFFF));
122                maprange.Add(new MemMap("EE RAM (Cached)", 0x00100000, 0x01FFFFFF));
123                maprange.Add(new MemMap("EE RAM (Uncached)", 0x20100000, 0x21FFFFFF));
124                maprange.Add(new MemMap("EE RAM (Uncached&accelerated)", 0x30100000, 0x31FFFFFF));
125                maprange.Add(new MemMap("EE Registers (uncached)", 0x10000000, 0x11FFFFFF));
126                maprange.Add(new MemMap("GS Registers (uncached)", 0x12000000, 0x13FFFFFF));
127                maprange.Add(new MemMap("Boot ROM0 (uncached)", 0x1FC00000, 0x1FFFFFFF));
128                maprange.Add(new MemMap("Boot ROM09 (cached)", 0x9FC00000, 0x9FFFFFFF));
129                maprange.Add(new MemMap("Boot ROM0b (uncached)", 0xBFC00000, 0xBFFFFFFF));
130                maprange.Add(new MemMap("Boot ROM1", 0xBE000000, 0xBE040000));
131                maprange.Add(new MemMap("Boot ROM2", 0xBE400000, 0xBE440000));
132                maprange.Add(new MemMap("IOP RAM", 0xBC000000, 0xBC1FFFFF));
133                maprange.Add(new MemMap("Scratch Pad", 0x70000000, 0x70003FFF));
134              #endregion              #endregion
135              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
136              return map;              return map;
# Line 187  namespace RomCheater.EmuMMAPPlugin Line 200  namespace RomCheater.EmuMMAPPlugin
200          {          {
201              this.MapName = name;              this.MapName = name;
202          }          }
203          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) { }
204          public MemMap(string name, string start, string end, string size)          public MemMap(string name, string start, string end, ulong size)
205              : this(name)              : this(name)
206          {          {
207              this.MapStart = start;              this.MapStart = start;
208              this.MapEnd = end;              this.MapEnd = end;
209              this.MapSize = size;              this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
210          }          }
211          #region IMappedMemRange Members          #region IMappedMemRange Members
212          public string MapName { get; private set; }          public string MapName { get; private set; }

Legend:
Removed from v.641  
changed lines
  Added in v.643

  ViewVC Help
Powered by ViewVC 1.1.22