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

View file

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

View file

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