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 @@