Tweaks from concurrent project
This commit is contained in:
@@ -218,13 +218,17 @@
|
||||
|
||||
// Update the display with current emulation data
|
||||
refresh(clientHeight, lineHeight, registers) {
|
||||
if (!registers) {
|
||||
this.debug.core.postMessage({
|
||||
command: "GetRegisters",
|
||||
debug : "CPU",
|
||||
sim : this.debug.sim
|
||||
});
|
||||
if (!this.isVisible())
|
||||
return;
|
||||
if (registers) {
|
||||
this.getRegisters({ registers });
|
||||
return;
|
||||
}
|
||||
this.debug.core.postMessage({
|
||||
command: "GetRegisters",
|
||||
debug : "CPU",
|
||||
sim : this.debug.sim
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ globalThis.MemoryWindow = class MemoryWindow extends Toolkit.Window {
|
||||
for (
|
||||
let x = 0, address = this.address, offset = 0;
|
||||
x < this.rows.length && offset < bytes.length;
|
||||
x++, address = (address + 16 & 0xFFFFFFFF) >>> 0, offset += 16
|
||||
x++, address = (address + 16 & 0xFFFFFFF0) >>> 0, offset += 16
|
||||
) this.rows[x].update(address, bytes, offset);
|
||||
}
|
||||
|
||||
@@ -155,21 +155,21 @@ globalThis.MemoryWindow = class MemoryWindow extends Toolkit.Window {
|
||||
// Processing by key
|
||||
else switch (e.key) {
|
||||
case "ArrowDown":
|
||||
this.address = (this.address + 16 & 0xFFFFFFFF) >>> 0;
|
||||
this.address = (this.address + 16 & 0xFFFFFFF0) >>> 0;
|
||||
this.refresh();
|
||||
break;
|
||||
case "ArrowUp":
|
||||
this.address = (this.address - 16 & 0xFFFFFFFF) >>> 0;
|
||||
this.address = (this.address - 16 & 0xFFFFFFF0) >>> 0;
|
||||
this.refresh();
|
||||
break;
|
||||
case "PageUp":
|
||||
this.address = (this.address - 16 * this.lines(true) &
|
||||
0xFFFFFFFF) >>> 0;
|
||||
0xFFFFFFF0) >>> 0;
|
||||
this.refresh();
|
||||
break;
|
||||
case "PageDown":
|
||||
this.address = (this.address + 16 * this.lines(true) &
|
||||
0xFFFFFFFF) >>> 0;
|
||||
0xFFFFFFF0) >>> 0;
|
||||
this.refresh();
|
||||
break;
|
||||
default: return super.onkeydown(e);
|
||||
@@ -193,13 +193,13 @@ globalThis.MemoryWindow = class MemoryWindow extends Toolkit.Window {
|
||||
e.stopPropagation();
|
||||
|
||||
// Specify the new address
|
||||
this.address = (this.address + sign * mag * 16 & 0xFFFFFFFF) >>> 0;
|
||||
this.address = (this.address + sign * mag * 16 & 0xFFFFFFF0) >>> 0;
|
||||
this.refresh(null, lineHeight);
|
||||
}
|
||||
|
||||
// Move to a new address positioned at a particular row of output
|
||||
seek(address, index) {
|
||||
this.address = (address - (index || 0) * 16 & 0xFFFFFFFF) >>> 0;
|
||||
this.address = (address - (index || 0) * 16 & 0xFFFFFFF0) >>> 0;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
@@ -312,8 +312,7 @@
|
||||
localized: true,
|
||||
text : "{cpu.pcFrom}"
|
||||
}));
|
||||
lbl.element.setAttribute("name", "indent");
|
||||
this.txtFrom = this.expansion.add(this.newTextBox());
|
||||
this.txtFrom = this.expansion.add(this.newTextBox({ enabled: false }));
|
||||
this.txtFrom.element.setAttribute("name", "value");
|
||||
|
||||
// To text box
|
||||
@@ -321,8 +320,7 @@
|
||||
localized: true,
|
||||
text : "{cpu.pcTo}"
|
||||
}));
|
||||
lbl.element.setAttribute("name", "indent");
|
||||
this.txtTo = this.expansion.add(this.newTextBox());
|
||||
this.txtTo = this.expansion.add(this.newTextBox({ enabled: false }));
|
||||
this.txtTo.element.setAttribute("name", "value");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user