Cleaned up PDP register dump code
This commit is contained in:
parent
8320f58d44
commit
884b74d96f
7 changed files with 574 additions and 616 deletions
|
|
@ -812,11 +812,11 @@ class DebuggerPDP10 extends Debugger {
|
|||
*
|
||||
* @this {DebuggerPDP10}
|
||||
* @param {number} iReg (0-7; not used for other registers)
|
||||
* @return {string|undefined}
|
||||
* @return {string}
|
||||
*/
|
||||
getRegName(iReg)
|
||||
{
|
||||
return DebuggerPDP10.REGNAMES[iReg];
|
||||
return DebuggerPDP10.REGNAMES[iReg] || "";
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -1885,8 +1885,10 @@ class DebuggerPDP10 extends Debugger {
|
|||
*/
|
||||
getRegOutput(iReg)
|
||||
{
|
||||
var sReg = this.getRegName(iReg) || "undefined";
|
||||
if (sReg) sReg += ' ';
|
||||
var sReg = this.getRegName(iReg);
|
||||
if (sReg) {
|
||||
sReg += '=' + this.toStrBase(this.getRegValue(iReg)) + ' ';
|
||||
}
|
||||
return sReg;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue