Fixed assorted inspection errors
This commit is contained in:
parent
127442d405
commit
a03f076355
5 changed files with 9 additions and 7 deletions
|
|
@ -494,7 +494,7 @@ class BusPDP11 extends Component {
|
||||||
var block = this.aBusBlocks[iBlock];
|
var block = this.aBusBlocks[iBlock];
|
||||||
info.cbTotal += block.size;
|
info.cbTotal += block.size;
|
||||||
if (block.size) {
|
if (block.size) {
|
||||||
info.aBlocks.push(Usr.initBitFields(BlockInfoPDP11, iBlock, 0, 0, block.type));
|
info.aBlocks.push(/** @type {BlockInfoPDP11} */ (Usr.initBitFields(BlockInfoPDP11, iBlock, 0, 0, block.type)));
|
||||||
info.cBlocks++
|
info.cBlocks++
|
||||||
}
|
}
|
||||||
iBlock++;
|
iBlock++;
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ import MessagesPDP11 from "./messages";
|
||||||
* aCmds preprocessed commands (from sCmd)
|
* aCmds preprocessed commands (from sCmd)
|
||||||
*
|
*
|
||||||
* @typedef {{
|
* @typedef {{
|
||||||
* addr:(number),
|
* addr:(number|undefined),
|
||||||
* fPhysical:(boolean),
|
* fPhysical:(boolean),
|
||||||
* fTemporary:(boolean),
|
* fTemporary:(boolean),
|
||||||
* nBase:(number|undefined),
|
* 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.
|
* TODO: Tweak this output to accommodate 18-bit machines as well as 22-bit machines.
|
||||||
*/
|
*/
|
||||||
var fPhysical = (dbgAddr.fPhysical || dbgAddr.addr > 0xffff);
|
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));
|
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 < 6) {
|
||||||
if (a.length > 2) {
|
if (a.length > 2) {
|
||||||
|
|
|
||||||
|
|
@ -35,11 +35,13 @@
|
||||||
import Str from "../../shared/es6/strlib";
|
import Str from "../../shared/es6/strlib";
|
||||||
import Web from "../../shared/es6/weblib";
|
import Web from "../../shared/es6/weblib";
|
||||||
import Component from "../../shared/es6/component";
|
import Component from "../../shared/es6/component";
|
||||||
|
import PDP11 from "./defines";
|
||||||
import BusPDP11 from "./bus";
|
import BusPDP11 from "./bus";
|
||||||
import MemoryPDP11 from "./memory";
|
import MemoryPDP11 from "./memory";
|
||||||
import MessagesPDP11 from "./messages";
|
import MessagesPDP11 from "./messages";
|
||||||
import PC11 from "./pc11";
|
import PC11 from "./pc11";
|
||||||
import RL11 from "./rl11";
|
import RL11 from "./rl11";
|
||||||
|
import RK11 from "./rk11";
|
||||||
|
|
||||||
class DevicePDP11 extends Component {
|
class DevicePDP11 extends Component {
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
import Str from "../../shared/es6/strlib";
|
import Str from "../../shared/es6/strlib";
|
||||||
import Component from "../..shared/es6/component";
|
import Component from "../../shared/es6/component";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Debugger Address Object
|
* Debugger Address Object
|
||||||
|
|
|
||||||
|
|
@ -553,9 +553,9 @@ class Str {
|
||||||
*/
|
*/
|
||||||
static toASCIICode(b)
|
static toASCIICode(b)
|
||||||
{
|
{
|
||||||
var s = (b != Str.ASCII.CR && b != Str.ASCII.LF ? Str.aASCIICodes[b] : null);
|
var s;
|
||||||
if (s) {
|
if (b != Str.ASCII.CR && b != Str.ASCII.LF) {
|
||||||
s = '<' + s + '>';
|
s = '<' + Str.aASCIICodes[b] + '>';
|
||||||
} else {
|
} else {
|
||||||
s = String.fromCharCode(b);
|
s = String.fromCharCode(b);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue