/[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/08 22:19:03	645
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/08 22:37:39	648
@@ -78,7 +78,28 @@
             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("Zero Page", 0x0000, 0x00FF));
+            maprange.Add(new MemMap("Stack", 0x0100, 0x01FF));
+            maprange.Add(new MemMap("Ram", 0x0200, 0x07FF));
+
+            // mirror
+            maprange.Add(new MemMap("ZeroPage/Stack/Ram Mirror1", 0x0800, 0x0FFF));
+            // mirror
+            maprange.Add(new MemMap("ZeroPage/Stack/Ram Mirror2", 0x1000, 0x17FF));
+            // mirror
+            maprange.Add(new MemMap("ZeroPage/Stack/Ram Mirror3", 0x1800, 0x1FFF));
+          
+            maprange.Add(new MemMap("IO Reg1", 0x2000, 0x2007));
+            maprange.Add(new MemMap("IO reg1 mirror - repeated", 0x2000, 0x3FFF));
+            maprange.Add(new MemMap("IO Reg2", 0x4000, 0x401F));
+            maprange.Add(new MemMap("Expansion ROM", 0x4020, 0x5FFF));
+            maprange.Add(new MemMap("SRAM", 0x6000, 0x7FFF));
+            maprange.Add(new MemMap("PRG-ROM", 0x8000, 0xFFFF));
+
+            maprange.Add(new MemMap("Address of NMI Interrupt handler", 0xFFFA, 0xFFFB));
+            maprange.Add(new MemMap("Address of Power on reset handler", 0xFFFC, 0xFFFD));
+            maprange.Add(new MemMap("Address of BRK handler routine", 0xFFFE, 0xFFFF));
             #endregion
             map = new DeviceMemoryMap(name, maprange);
             return map;
@@ -104,8 +125,7 @@
             DeviceMemoryMap map = new DeviceMemoryMap();
             List<IMemMap> maprange = new List<IMemMap>();
             #region memory maps
-            maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
-            #endregion
+            //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));            
             maprange.Add(new MemMap("Kernel Memory", 0x00000000, 0x0000ffff));
             maprange.Add(new MemMap("User Memory", 0x00010000, 0x001FFFFF));
             maprange.Add(new MemMap("Parallel Port", 0x1f000000, 0x1f00ffff));
@@ -114,6 +134,8 @@
             maprange.Add(new MemMap("Kernel & User Memory (cached)", 0x80000000, 0x801fffff));
             maprange.Add(new MemMap("Kernel & User Memory (uncached)", 0xa0000000, 0xa01fffff));
             maprange.Add(new MemMap("BIOS", 0x1FC00000, 0x1FC7FFFF));
+            #endregion
+            map = new DeviceMemoryMap(name, maprange);
             return map;
         }
         #endregion
@@ -213,7 +235,7 @@
         {
             this.MapStart = start;
             this.MapEnd = end;
-            this.MapSize = string.Format("0x{0}={1:0.00}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
+            this.MapSize = string.Format("0x{0}={1:0.00000}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
         }
         #region IMappedMemRange Members
         public string MapName { get; private set; }

 

  ViewVC Help
Powered by ViewVC 1.1.22