Difference between revisions of "Memory Map Generator"

From Archaic Pixels
Jump to: navigation, search
Line 94: Line 94:
 
   var single_map = data[name];
 
   var single_map = data[name];
 
   document.writeln("=== " + name + " ===");
 
   document.writeln("=== " + name + " ===");
    document.writeln("<br>");  document.writeln('{| class="styled_table" style="width:750px"');
+
  document.writeln("<br>");
    document.writeln("<br>");  document.writeln("! Physical Addresses !! Segment : Address !! Description !! Chip enable signal");
+
  document.writeln("<br>");  document.writeln('{| class="styled_table" style="width:750px"');
    document.writeln("<br>");
+
  document.writeln("<br>");  document.writeln("! Physical Addresses !! Segment : Address !! Description !! Chip enable signal");
 +
  document.writeln("<br>");
 +
 
 
   for(var row = 0; row < single_map.length; ++row)
 
   for(var row = 0; row < single_map.length; ++row)
 
   {
 
   {
Line 102: Line 104:
 
     var end = single_map[row][1];
 
     var end = single_map[row][1];
  
     document.writeln("|-<br>| " + hexpad(begin, 6) + " - " + hexpad(end, 6)
+
     document.writeln("|-");
 +
    document.writeln("<br>");
 +
    document.writeln("| "
 +
      + hexpad(begin, 6) + " - " + hexpad(end, 6)
 +
      + " || "
 +
      + hexpad(begin >> 13, 2) + ":" + hexpad(begin % 0x2000, 4)
 +
      + " - "
 +
      + hexpad(end >> 13, 2) + ":" + hexpad(end % 0x2000, 4)
 +
      + " || "
 +
      + single_map[row][2]
 +
      + " || "
  
+ " || " +
+
    );
hexpad(begin >> 13, 2) + ":" + hexpad(begin % 0x2000, 4)
+
+ " - " +
+
hexpad(end >> 13, 2) + ":" + hexpad(end % 0x2000, 4)
+
+ " || " + single_map[row][2] + " || ");
+
  
 
//single_map[row][0] single_map[row][1]
 
//single_map[row][0] single_map[row][1]

Revision as of 09:04, 20 July 2014