mirror of
https://github.com/MutableLoss/6502SimDesktop.git
synced 2024-11-24 12:31:09 +00:00
monitor update
This commit is contained in:
parent
900bc9f699
commit
01cb035a2b
@ -35,8 +35,9 @@ function SimulatorWidget(node) {
|
|||||||
$node.find('.resetButton').click(simulator.reset);
|
$node.find('.resetButton').click(simulator.reset);
|
||||||
$node.find('.hexdumpButton').click(assembler.hexdump);
|
$node.find('.hexdumpButton').click(assembler.hexdump);
|
||||||
$node.find('.disassembleButton').click(assembler.disassemble);
|
$node.find('.disassembleButton').click(assembler.disassemble);
|
||||||
$node.find('.debug').change(function () {
|
$node.find('.debug').on('click', function () {
|
||||||
var debug = $(this).is(':checked');
|
$(this).toggleClass('active');
|
||||||
|
var debug = $(this).hasClass('active');
|
||||||
if (debug) {
|
if (debug) {
|
||||||
ui.debugOn();
|
ui.debugOn();
|
||||||
simulator.enableDebugger();
|
simulator.enableDebugger();
|
||||||
@ -45,7 +46,11 @@ function SimulatorWidget(node) {
|
|||||||
simulator.stopDebugger();
|
simulator.stopDebugger();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
$node.find('.monitoring').change(function () {
|
$node.find('.monitoring').on('click', function () {
|
||||||
|
$(this).toggleClass('active');
|
||||||
|
if($(this).hasClass('active')) {
|
||||||
|
|
||||||
|
}
|
||||||
ui.toggleMonitor();
|
ui.toggleMonitor();
|
||||||
simulator.toggleMonitor();
|
simulator.toggleMonitor();
|
||||||
});
|
});
|
||||||
@ -156,7 +161,7 @@ function SimulatorWidget(node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function toggleMonitor() {
|
function toggleMonitor() {
|
||||||
$node.find('.monitor').toggle();
|
$node.find('.monitor-container').toggle();
|
||||||
}
|
}
|
||||||
|
|
||||||
function showNotes() {
|
function showNotes() {
|
||||||
@ -1633,10 +1638,8 @@ function SimulatorWidget(node) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateDebugInfo() {
|
function updateDebugInfo() {
|
||||||
var html = "A=$" + num2hex(regA) + " X=$" + num2hex(regX) + " Y=$" + num2hex(regY) + "<br />";
|
var html = "A=$" + num2hex(regA) + " X=$" + num2hex(regX) + " Y=$" + num2hex(regY) +
|
||||||
html += "SP=$" + num2hex(regSP) + " PC=$" + addr2hex(regPC);
|
" SP=$" + num2hex(regSP) + " PC=$" + addr2hex(regPC) + " NV-BDIZC: ";
|
||||||
html += "<br />";
|
|
||||||
html += "NV-BDIZC<br />";
|
|
||||||
for (var i = 7; i >=0; i--) {
|
for (var i = 7; i >=0; i--) {
|
||||||
html += regP >> i & 1;
|
html += regP >> i & 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user