Across-the-board debugger fix

This commit is contained in:
Jeff 2016-09-27 09:34:56 -07:00 • committed by Jeff Parsons
commit 9727a2d4df
3 changed files with 266 additions and 274 deletions

View file

@ -3669,11 +3669,9 @@ if (DEBUGGER) {
return;
}
var fValid = false;
var w = this.parseExpression(sValue);
if (w === undefined) return;
if (w !== undefined) {
fValid = true;
var sRegMatch = sReg.toUpperCase();
switch (sRegMatch) {
case "A":
@ -3741,11 +3739,6 @@ if (DEBUGGER) {
this.println("unknown register: " + sReg);
return;
}
}
if (!fValid) {
this.println("invalid value: " + sValue);
return;
}
cpu.updateCPU();
this.println("updated registers:");
}

View file

@ -6784,10 +6784,11 @@ if (DEBUGGER) {
this.println("missing value for " + asArgs[1]);
return;
}
var fValid = false;
var w = this.parseExpression(sValue);
if (w !== undefined) {
fValid = true;
if (w === undefined) return;
var fValid = true;
var sRegMatch = sReg.toUpperCase();
if (sRegMatch.charAt(0) == 'E' && this.cchReg <= 4) {
sRegMatch = null;
@ -6993,7 +6994,6 @@ if (DEBUGGER) {
return;
}
}
}
if (!fValid) {
this.println("invalid value: " + sValue);
return;

View file

@ -3177,7 +3177,6 @@ if (DEBUGGER) {
this.println("unknown register: " + sReg);
return;
}
cpu.updateCPU();
this.println("updated registers:");
}