Fixed assorted inspection errors

This commit is contained in:
Jeff Parsons 2016-12-21 17:37:01 -08:00 committed by Jeff Parsons
commit a03f076355
5 changed files with 9 additions and 7 deletions

View file

@ -55,7 +55,7 @@ import MessagesPDP11 from "./messages";
* aCmds preprocessed commands (from sCmd)
*
* @typedef {{
* addr:(number),
* addr:(number|undefined),
* fPhysical:(boolean),
* fTemporary:(boolean),
* nBase:(number|undefined),
@ -2918,7 +2918,7 @@ class DebuggerPDP11 extends Debugger {
* TODO: Tweak this output to accommodate 18-bit machines as well as 22-bit machines.
*/
var fPhysical = (dbgAddr.fPhysical || dbgAddr.addr > 0xffff);
var a = this.cpu.getAddrInfo(dbgAddr.addr, fPhysical);
var a = this.cpu.getAddrInfo(dbgAddr.addr || 0, fPhysical);
this.println(Str.pad("", fPhysical? 12: 19) + Str.toBin(dbgAddr.addr, fPhysical? 22 : 17, 3) + " " + Str.toOct(dbgAddr.addr, 8));
if (a.length < 6) {
if (a.length > 2) {