Fixed Panel update on a reset
This commit is contained in:
parent
d182c7eced
commit
284c2cd76b
5 changed files with 321 additions and 319 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue