Fixed Panel update on a reset

This commit is contained in:
Jeff Parsons 2017-01-26 11:28:59 -08:00 committed by Jeff Parsons
commit 284c2cd76b
5 changed files with 321 additions and 319 deletions

View file

@ -533,12 +533,9 @@ class PanelPDP11 extends Component {
displayValue(sLabel, nValue, cch)
{
if (this.bindings[sLabel]) {
if (nValue === undefined) {
this.setError("Value for " + sLabel + " is invalid");
this.cpu.stopCPU();
}
var sVal;
var nBase = this.dbg && this.dbg.nBase || 8;
nValue = nValue || 0;
if (!this.cpu.isRunning() || this.fDisplayLiveRegs) {
sVal = nBase == 8? Str.toOct(nValue, cch) : Str.toHex(nValue, cch);
} else {