/[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:45:25	649
+++ trunk/RomCheater.EmuMMAPPlugin/EmuMEMMapDockControl.cs	2013/06/09 00:04:18	650
@@ -74,6 +74,7 @@
         #region NES
         private DeviceMemoryMap CreateNESMemMap()
         {
+            /* http://en.wikibooks.org/wiki/NES_Programming */
             const string name = "NES";
             DeviceMemoryMap map = new DeviceMemoryMap();            
             List<IMemMap> maprange = new List<IMemMap>();
@@ -108,11 +109,15 @@
         #region SNES
         private DeviceMemoryMap CreateSNESMemMap()
         {
+            /* http://www.emulatronia.com/doctec/consolas/snes/SNESMem.txt */
             const string name = "SNES";
             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("LowRAM", 0x0000, 0x1fff));
+            maprange.Add(new MemMap("HighRAM", 0x2000, 0x7fff));
+            maprange.Add(new MemMap("Expanded RAM", 0x8000, 0xffff));
             #endregion
             map = new DeviceMemoryMap(name, maprange);
             return map;
@@ -121,6 +126,7 @@
         #region PS1
         private DeviceMemoryMap CreatePS1MemMap()
         {
+            /* http://rveach.romhack.org/PSXInfo/psx%20hardware%20info.txt */
             const string name = "PS1";
             DeviceMemoryMap map = new DeviceMemoryMap();
             List<IMemMap> maprange = new List<IMemMap>();
@@ -130,10 +136,12 @@
             maprange.Add(new MemMap("User Memory", 0x00010000, 0x001FFFFF));
             maprange.Add(new MemMap("Parallel Port", 0x1f000000, 0x1f00ffff));
             maprange.Add(new MemMap("Scratch Pad", 0x1f800000, 0x1f8003ff));
-            maprange.Add(new MemMap("HW Registers", 0x1f801000, 0x1f802fff));
+            maprange.Add(new MemMap("HW Registers", 0x1f801000, 0x1f802fff));            
+            maprange.Add(new MemMap("BIOS", 0x1FC00000, 0x1FC7FFFF));
+
             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;
@@ -142,6 +150,8 @@
         #region PS2
         private DeviceMemoryMap CreatePS2MemMap()
         {
+            /* http://psx-scene.com/forums/attachments/f19/17285d1280158606-ps2-memory-hardware-mapped-registers-layout-ps2-memory-hardware-mapped-registers-layout.txt */
+            /* http://psx-scene.com/forums/f19/ps2-memory-hardware-mapped-registers-layout-64760/ */
             const string name = "PS2";
             DeviceMemoryMap map = new DeviceMemoryMap();
             List<IMemMap> maprange = new List<IMemMap>();

 

  ViewVC Help
Powered by ViewVC 1.1.22