/[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 647 by william, Sat Jun 8 22:25:19 2013 UTC revision 649 by william, Sat Jun 8 22:45:25 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 214  namespace RomCheater.EmuMMAPPlugin Line 235  namespace RomCheater.EmuMMAPPlugin
235          {          {
236              this.MapStart = start;              this.MapStart = start;
237              this.MapEnd = end;              this.MapEnd = end;
238              this.MapSize = string.Format("0x{0}={1:0.00000}MB", size.ToString("X"), ((double)size / (1024.0 * 1024.0)));  
239                ulong _size = size + 1;
240                double t = 1024.0 * 1024.0;
241                double __size = (double)_size/t;
242                this.MapSize = string.Format("0x{0}={1:0.000000}MB", _size.ToString("X"), __size);
243          }          }
244          #region IMappedMemRange Members          #region IMappedMemRange Members
245          public string MapName { get; private set; }          public string MapName { get; private set; }

Legend:
Removed from v.647  
changed lines
  Added in v.649

  ViewVC Help
Powered by ViewVC 1.1.22