Added some RK11 fixes for the 11/70 CPU EXERCISER, and some Debugger improvements for dumping address info ("da")

This commit is contained in:
Jeff Parsons 2016-12-08 17:05:03 -08:00 committed by Jeff Parsons
commit ba8771adf1
18 changed files with 847 additions and 793 deletions

View file

@ -793,15 +793,15 @@ DiskPDP11.prototype.read = function(sector, ibSector, fCompare)
{
var b = -1;
if (sector) {
if (DEBUG && !ibSector && !fCompare && this.messageEnabled()) {
this.printMessage('read("' + this.sDiskFile + '",CHS=' + sector.iCylinder + ':' + sector.iHead + ':' + sector['sector'] + ')');
}
if (ibSector < sector['length']) {
var adw = sector['data'];
var idw = ibSector >> 2;
var dw = (idw < adw.length ? adw[idw] : sector['pattern']);
b = ((dw >> ((ibSector & 0x3) << 3)) & 0xff);
}
if (DEBUG && !fCompare && this.messageEnabled()) {
this.printMessage('read("' + this.sDiskFile + '",CHS=' + sector.iCylinder + ':' + sector.iHead + ':' + sector['sector'] + ',index=' + ibSector + ',value=' + str.toHexByte(b) + ')');
}
}
return b;
};
@ -820,8 +820,8 @@ DiskPDP11.prototype.write = function(sector, ibSector, b)
if (this.fWriteProtected)
return false;
if (DEBUG && !ibSector && this.messageEnabled()) {
this.printMessage('write("' + this.sDiskFile + '",CHS=' + sector.iCylinder + ':' + sector.iHead + ':' + sector['sector'] + ')');
if (DEBUG && this.messageEnabled()) {
this.printMessage('write("' + this.sDiskFile + '",CHS=' + sector.iCylinder + ':' + sector.iHead + ':' + sector['sector'] + ',index=' + ibSector + ',value=' + str.toHexByte(b) + ')');
}
if (ibSector < sector['length']) {