CPU corrections

This commit is contained in:
2021-09-20 12:51:12 +00:00
parent 573f72e46f
commit 89feaaa3e9
6 changed files with 31 additions and 18 deletions
+1 -1
View File
@@ -520,7 +520,7 @@
line : line,
lines : lines,
target : address,
seekToPC: seekToPC,
seekToPC: !!seekToPC,
size : (end - start + 1) * 4
});
}
+2 -2
View File
@@ -366,9 +366,9 @@
let bits = this.bits(inst);
let reg2 = this.PROREGNAMES[bits >> 21 & 31];
let reg1 = this.PROREGNAMES[bits >> 16 & 31];
let subop = this.signExtend(bits & 0xFFFF, 16);
let subop = bits >> 10 & 63;
inst.mnemonic = this.FLOATENDO[subop];
if (inst.mnemonic = null)
if (inst.mnemonic == null)
return;
switch (subop) {
case 0b001000: // XB
+1
View File
@@ -149,6 +149,7 @@ globalThis.MemoryWindow = class MemoryWindow extends Toolkit.Window {
command: "Write",
sim : this.debug.sim,
dbgwnd : "Memory",
debug : true,
address: this.selected,
type : 0,
value : value
+1 -1
View File
@@ -483,7 +483,7 @@
setRegister(value) {
this.debug.core.postMessage({
command: "SetRegister",
debug : "CPU",
dbgwnd : "CPU",
id : this.id,
sim : this.debug.sim,
type : this.system ? this.id == -1 ? "pc" : "system" : "program",