/[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

--- trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/09 00:04:18	650
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/09 00:30:55	652
@@ -178,11 +178,17 @@
         #region N64
         private DeviceMemoryMap CreateN64MemMap()
         {
+            /* http://n64.icequake.net/doc/n64intro/kantan/step1/1-4.html */
             const string name = "N64";
             DeviceMemoryMap map = new DeviceMemoryMap();
             List<IMemMap> maprange = new List<IMemMap>();
             #region memory maps
-            maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
+            //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
+            maprange.Add(new MemMap("KUSEG [TLB Map]", 0x00000000, 0x7fffffff));
+            maprange.Add(new MemMap("KSEG0 [Ram cached]", 0x80000000, 0x9fffffff));
+            maprange.Add(new MemMap("KSEG1 [Ram uncached]", 0xa0000000, 0xbfffffff));
+            maprange.Add(new MemMap("KSSEG [TLB Map]", 0xc0000000, 0xdfffffff));
+            maprange.Add(new MemMap("KSEG3 [TLB Map]", 0xe0000000, 0xffffffff));
             #endregion
             map = new DeviceMemoryMap(name, maprange);
             return map;
@@ -191,11 +197,15 @@
         #region NGC
         private DeviceMemoryMap CreateNGCMemMap()
         {
+            /* http://hitmen.c02.at/files/yagcd/yagcd/chap4.html#sec4 */
             const string name = "NGC";
             DeviceMemoryMap map = new DeviceMemoryMap();
             List<IMemMap> maprange = new List<IMemMap>();
             #region memory maps
-            maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
+            //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
+            maprange.Add(new MemMap("Physical RAM", 0x00000000, 0x017fffff));
+            maprange.Add(new MemMap("Logical RAM [cached]", 0x80000000, 0x817fffff));
+            maprange.Add(new MemMap("Logical RAM [uncached]", 0xC0000000, 0xC17fffff));
             #endregion
             map = new DeviceMemoryMap(name, maprange);
             return map;

 

  ViewVC Help
Powered by ViewVC 1.1.22