diff --git a/assembler.js b/assembler.js index 875b46b..d77ea9b 100644 --- a/assembler.js +++ b/assembler.js @@ -18,6 +18,7 @@ function SimulatorWidget(node) { var labels = Labels(); var simulator = Simulator(); var assembler = Assembler(); + var noaddress = false; function initialize() { stripText(); @@ -43,6 +44,9 @@ function SimulatorWidget(node) { simulator.stopDebugger(); } }); + $node.find('.noaddress').change(function (){ + noaddress = $(this).is(':checked'); + }); $node.find('.monitoring').change(function () { ui.toggleMonitor(); simulator.toggleMonitor(); @@ -247,9 +251,12 @@ function SimulatorWidget(node) { if ((x & 15) === 0) { if (x > 0) { html += "\n"; } n = (start + x); - html += num2hex(((n >> 8) & 0xff)); - html += num2hex((n & 0xff)); - html += ": "; + if (!noaddress) + { + html += num2hex(((n >> 8) & 0xff)); + html += num2hex((n & 0xff)); + html += ": "; + } } html += num2hex(memory.get(start + x)); html += " "; diff --git a/index.html b/index.html index c037c3b..d71b029 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,9 @@
- +
+ +
diff --git a/style.css b/style.css index 9dd1529..9d9ab67 100644 --- a/style.css +++ b/style.css @@ -25,7 +25,7 @@ padding: 6px; border: 1px solid black; width: 420px; - height: 290px; + height: 315px; font-family: monospace; overflow: auto; float: left; @@ -40,7 +40,7 @@ margin-top: 6px; padding: 3px; padding-top: 8px; - height: 125px; + height: 150px; width: 152px; text-align: center; float: right;