/[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 644 by william, Sat Jun 8 22:15:48 2013 UTC
# Line 106  namespace RomCheater.EmuMMAPPlugin Line 106  namespace RomCheater.EmuMMAPPlugin
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              #endregion              #endregion
109              map = new DeviceMemoryMap(name, maprange);              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;              return map;
118          }          }
119          #endregion          #endregion
# Line 117  namespace RomCheater.EmuMMAPPlugin Line 124  namespace RomCheater.EmuMMAPPlugin
124              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
125              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
126              #region memory maps              #region memory maps
127              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
128                maprange.Add(new MemMap("EE Kernel", 0x80000000, 0x800FFFFF));
129                maprange.Add(new MemMap("EE RAM (Cached)", 0x00100000, 0x01FFFFFF));
130                maprange.Add(new MemMap("EE RAM (Uncached)", 0x20100000, 0x21FFFFFF));
131                maprange.Add(new MemMap("EE RAM (Uncached&accelerated)", 0x30100000, 0x31FFFFFF));
132                maprange.Add(new MemMap("EE Registers (uncached)", 0x10000000, 0x11FFFFFF));
133                maprange.Add(new MemMap("GS Registers (uncached)", 0x12000000, 0x13FFFFFF));
134                maprange.Add(new MemMap("Boot ROM0 (uncached)", 0x1FC00000, 0x1FFFFFFF));
135                maprange.Add(new MemMap("Boot ROM09 (cached)", 0x9FC00000, 0x9FFFFFFF));
136                maprange.Add(new MemMap("Boot ROM0b (uncached)", 0xBFC00000, 0xBFFFFFFF));
137                maprange.Add(new MemMap("Boot ROM1", 0xBE000000, 0xBE040000));
138                maprange.Add(new MemMap("Boot ROM2", 0xBE400000, 0xBE440000));
139                maprange.Add(new MemMap("IOP RAM", 0xBC000000, 0xBC1FFFFF));
140                maprange.Add(new MemMap("Scratch Pad", 0x70000000, 0x70003FFF));
141              #endregion              #endregion
142              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
143              return map;              return map;
# Line 187  namespace RomCheater.EmuMMAPPlugin Line 207  namespace RomCheater.EmuMMAPPlugin
207          {          {
208              this.MapName = name;              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"))) { }          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, string size)          public MemMap(string name, string start, string end, ulong size)
212              : this(name)              : this(name)
213          {          {
214              this.MapStart = start;              this.MapStart = start;
215              this.MapEnd = end;              this.MapEnd = end;
216              this.MapSize = size;              this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
217          }          }
218          #region IMappedMemRange Members          #region IMappedMemRange Members
219          public string MapName { get; private set; }          public string MapName { get; private set; }

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

  ViewVC Help
Powered by ViewVC 1.1.22