Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions assembler.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ function SimulatorWidget(node) {
var labels = Labels();
var simulator = Simulator();
var assembler = Assembler();
var noaddress = false;

function initialize() {
stripText();
Expand All @@ -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();
Expand Down Expand Up @@ -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 += " ";
Expand Down
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

<div class="debugger">
<input type="checkbox" class="debug" name="debug" />
<label for="debug">Debugger</label>
<label for="debug">Debugger</label><br/>
<input type="checkbox" class="noaddress" name="noaddress" />
<label for="noaddress">No address in hexdump</label>
<div class="minidebugger"></div>
<div class="buttons">
<input type="button" value="Step" class="stepButton" />
Expand Down
4 changes: 2 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
padding: 6px;
border: 1px solid black;
width: 420px;
height: 290px;
height: 315px;
font-family: monospace;
overflow: auto;
float: left;
Expand All @@ -40,7 +40,7 @@
margin-top: 6px;
padding: 3px;
padding-top: 8px;
height: 125px;
height: 150px;
width: 152px;
text-align: center;
float: right;
Expand Down