/[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 650 by william, Sun Jun 9 00:04:18 2013 UTC revision 653 by william, Sun Jun 9 00:34:29 2013 UTC
# Line 178  namespace RomCheater.EmuMMAPPlugin Line 178  namespace RomCheater.EmuMMAPPlugin
178          #region N64          #region N64
179          private DeviceMemoryMap CreateN64MemMap()          private DeviceMemoryMap CreateN64MemMap()
180          {          {
181                /* http://n64.icequake.net/doc/n64intro/kantan/step1/1-4.html */
182              const string name = "N64";              const string name = "N64";
183              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
184              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
185              #region memory maps              #region memory maps
186              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
187                maprange.Add(new MemMap("KUSEG [TLB Map]", 0x00000000, 0x7fffffff));
188                maprange.Add(new MemMap("KSEG0 [Ram cached]", 0x80000000, 0x9fffffff));
189                maprange.Add(new MemMap("KSEG1 [Ram uncached]", 0xa0000000, 0xbfffffff));
190                maprange.Add(new MemMap("KSSEG [TLB Map]", 0xc0000000, 0xdfffffff));
191                maprange.Add(new MemMap("KSEG3 [TLB Map]", 0xe0000000, 0xffffffff));
192              #endregion              #endregion
193              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
194              return map;              return map;
# Line 191  namespace RomCheater.EmuMMAPPlugin Line 197  namespace RomCheater.EmuMMAPPlugin
197          #region NGC          #region NGC
198          private DeviceMemoryMap CreateNGCMemMap()          private DeviceMemoryMap CreateNGCMemMap()
199          {          {
200                /* http://hitmen.c02.at/files/yagcd/yagcd/chap4.html#sec4 */
201              const string name = "NGC";              const string name = "NGC";
202              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
203              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
204              #region memory maps              #region memory maps
205              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
206                maprange.Add(new MemMap("Physical RAM", 0x00000000, 0x017fffff));
207                maprange.Add(new MemMap("Logical RAM [cached]", 0x80000000, 0x817fffff));
208                maprange.Add(new MemMap("Logical RAM [uncached]", 0xC0000000, 0xC17fffff));
209              #endregion              #endregion
210              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
211              return map;              return map;
# Line 204  namespace RomCheater.EmuMMAPPlugin Line 214  namespace RomCheater.EmuMMAPPlugin
214          #region WII          #region WII
215          private DeviceMemoryMap CreateWIIMemMap()          private DeviceMemoryMap CreateWIIMemMap()
216          {          {
217                /* http://wiibrew.org/wiki/Memory_Map */
218              const string name = "WII";              const string name = "WII";
219              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
220              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
221              #region memory maps              #region memory maps
222              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
223                maprange.Add(new MemMap("MEM1 [cached]", 0x80000000, 0x817FFFFF));
224                maprange.Add(new MemMap("MEM1 [uncached]", 0xC0000000, 0xC17FFFFF));
225                maprange.Add(new MemMap("MEM2 [cached]", 0x90000000, 0x93FFFFFF));
226                maprange.Add(new MemMap("MEM2 [uncached]", 0xD0000000, 0xD3FFFFFF));
227                maprange.Add(new MemMap("Hollywood/Starlet Registers?", 0xCD000000, 0xCD008000));
228              #endregion              #endregion
229              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
230              return map;              return map;

Legend:
Removed from v.650  
changed lines
  Added in v.653

  ViewVC Help
Powered by ViewVC 1.1.22