/[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 642 by william, Sat Jun 8 21:58:23 2013 UTC revision 648 by william, Sat Jun 8 22:37:39 2013 UTC
# Line 78  namespace RomCheater.EmuMMAPPlugin Line 78  namespace RomCheater.EmuMMAPPlugin
78              DeviceMemoryMap map = new DeviceMemoryMap();                          DeviceMemoryMap map = new DeviceMemoryMap();            
79              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
80              #region memory maps              #region memory maps
81              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));
82                maprange.Add(new MemMap("Zero Page", 0x0000, 0x00FF));
83                maprange.Add(new MemMap("Stack", 0x0100, 0x01FF));
84                maprange.Add(new MemMap("Ram", 0x0200, 0x07FF));
85    
86                // mirror
87                maprange.Add(new MemMap("ZeroPage/Stack/Ram Mirror1", 0x0800, 0x0FFF));
88                // mirror
89                maprange.Add(new MemMap("ZeroPage/Stack/Ram Mirror2", 0x1000, 0x17FF));
90                // mirror
91                maprange.Add(new MemMap("ZeroPage/Stack/Ram Mirror3", 0x1800, 0x1FFF));
92              
93                maprange.Add(new MemMap("IO Reg1", 0x2000, 0x2007));
94                maprange.Add(new MemMap("IO reg1 mirror - repeated", 0x2000, 0x3FFF));
95                maprange.Add(new MemMap("IO Reg2", 0x4000, 0x401F));
96                maprange.Add(new MemMap("Expansion ROM", 0x4020, 0x5FFF));
97                maprange.Add(new MemMap("SRAM", 0x6000, 0x7FFF));
98                maprange.Add(new MemMap("PRG-ROM", 0x8000, 0xFFFF));
99    
100                maprange.Add(new MemMap("Address of NMI Interrupt handler", 0xFFFA, 0xFFFB));
101                maprange.Add(new MemMap("Address of Power on reset handler", 0xFFFC, 0xFFFD));
102                maprange.Add(new MemMap("Address of BRK handler routine", 0xFFFE, 0xFFFF));
103              #endregion              #endregion
104              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
105              return map;              return map;
# Line 104  namespace RomCheater.EmuMMAPPlugin Line 125  namespace RomCheater.EmuMMAPPlugin
125              DeviceMemoryMap map = new DeviceMemoryMap();              DeviceMemoryMap map = new DeviceMemoryMap();
126              List<IMemMap> maprange = new List<IMemMap>();              List<IMemMap> maprange = new List<IMemMap>();
127              #region memory maps              #region memory maps
128              maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));              //maprange.Add(new MemMap(string.Format("{0}_test", name), 0, 0));            
129                maprange.Add(new MemMap("Kernel Memory", 0x00000000, 0x0000ffff));
130                maprange.Add(new MemMap("User Memory", 0x00010000, 0x001FFFFF));
131                maprange.Add(new MemMap("Parallel Port", 0x1f000000, 0x1f00ffff));
132                maprange.Add(new MemMap("Scratch Pad", 0x1f800000, 0x1f8003ff));
133                maprange.Add(new MemMap("HW Registers", 0x1f801000, 0x1f802fff));
134                maprange.Add(new MemMap("Kernel & User Memory (cached)", 0x80000000, 0x801fffff));
135                maprange.Add(new MemMap("Kernel & User Memory (uncached)", 0xa0000000, 0xa01fffff));
136                maprange.Add(new MemMap("BIOS", 0x1FC00000, 0x1FC7FFFF));
137              #endregion              #endregion
138              map = new DeviceMemoryMap(name, maprange);              map = new DeviceMemoryMap(name, maprange);
139              return map;              return map;
# Line 200  namespace RomCheater.EmuMMAPPlugin Line 229  namespace RomCheater.EmuMMAPPlugin
229          {          {
230              this.MapName = name;              this.MapName = name;
231          }          }
232          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) { }
233          public MemMap(string name, string start, string end, string size)          public MemMap(string name, string start, string end, ulong size)
234              : this(name)              : this(name)
235          {          {
236              this.MapStart = start;              this.MapStart = start;
237              this.MapEnd = end;              this.MapEnd = end;
238              this.MapSize = size;              this.MapSize = string.Format("0x{0}={1:0.00000}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));
239          }          }
240          #region IMappedMemRange Members          #region IMappedMemRange Members
241          public string MapName { get; private set; }          public string MapName { get; private set; }

Legend:
Removed from v.642  
changed lines
  Added in v.648

  ViewVC Help
Powered by ViewVC 1.1.22