More Video DEBUG support, and more disk images
This commit is contained in:
parent
d87ee35343
commit
a1e3c366eb
24 changed files with 153 additions and 6 deletions
|
|
@ -5491,6 +5491,17 @@ if (DEBUGGER) {
|
|||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* doPrint(sCmd)
|
||||
*
|
||||
* @this {Debugger}
|
||||
* @param {string} sCmd
|
||||
*/
|
||||
Debugger.prototype.doPrint = function(sCmd)
|
||||
{
|
||||
this.parseExpression(sCmd, true);
|
||||
};
|
||||
|
||||
/**
|
||||
* doProcStep(sCmd)
|
||||
*
|
||||
|
|
@ -5890,6 +5901,9 @@ if (DEBUGGER) {
|
|||
this.println(sPrompt + sCmd);
|
||||
}
|
||||
|
||||
var ch = sCmd.charAt(0);
|
||||
if (ch == '"' || ch == "'") return true;
|
||||
|
||||
sCmd = sCmd.toLowerCase();
|
||||
|
||||
/*
|
||||
|
|
@ -6003,7 +6017,7 @@ if (DEBUGGER) {
|
|||
break;
|
||||
case "?":
|
||||
if (asArgs[1]) {
|
||||
this.parseExpression(asArgs[1], true);
|
||||
this.doPrint(asArgs[1]);
|
||||
break;
|
||||
}
|
||||
this.doHelp();
|
||||
|
|
|
|||
|
|
@ -1773,6 +1773,9 @@ Card.ACCESS.writeByteMode0 = function writeByteMode0(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1823,6 +1826,9 @@ Card.ACCESS.writeByteMode0Chain4 = function writeByteMode0Chain4(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0Chain4(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1849,6 +1855,9 @@ Card.ACCESS.writeByteMode0EvenOdd = function writeByteMode0EvenOdd(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0EvenOdd(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1871,6 +1880,9 @@ Card.ACCESS.writeByteMode0Rot = function writeByteMode0Rot(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0Rot(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1894,6 +1906,9 @@ Card.ACCESS.writeByteMode0And = function writeByteMode0And(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0And(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1917,6 +1932,9 @@ Card.ACCESS.writeByteMode0Or = function writeByteMode0Or(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0Or(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1940,6 +1958,9 @@ Card.ACCESS.writeByteMode0Xor = function writeByteMode0Xor(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode0Xor(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1958,6 +1979,9 @@ Card.ACCESS.writeByteMode1 = function writeByteMode1(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode1(" + str.toHexLong(addr) + "): " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1986,6 +2010,9 @@ Card.ACCESS.writeByteMode1EvenOdd = function writeByteMode1EvenOdd(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode1EvenOdd(" + str.toHexLong(addr) + "): " + str.toHexByte(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2006,6 +2033,9 @@ Card.ACCESS.writeByteMode2 = function writeByteMode2(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode2(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2027,6 +2057,9 @@ Card.ACCESS.writeByteMode2And = function writeByteMode2And(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode2And(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2048,6 +2081,9 @@ Card.ACCESS.writeByteMode2Or = function writeByteMode2Or(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode2Or(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2069,6 +2105,9 @@ Card.ACCESS.writeByteMode2Xor = function writeByteMode2Xor(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode2Xor(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -2097,6 +2136,9 @@ Card.ACCESS.writeByteMode3 = function writeByteMode3(off, b, addr)
|
|||
this.adw[idw] = dw;
|
||||
this.fDirty = true;
|
||||
}
|
||||
if (DEBUG && this.controller.video.messageEnabled(Messages.MEM | Messages.VIDEO)) {
|
||||
this.controller.video.printMessage("writeByteMode3(" + str.toHexLong(addr) + "): " + str.toHexByte(b) + " -> " + str.toHexLong(dw));
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
@ -4255,7 +4297,7 @@ Video.prototype.setAccess = function(nAccess)
|
|||
var card = this.cardActive;
|
||||
if (card && nAccess != null && nAccess != card.nAccess) {
|
||||
|
||||
if (DEBUG && this.messageEnabled()) {
|
||||
if (MAXDEBUG && this.messageEnabled()) {
|
||||
this.printMessage("setAccess(" + str.toHexWord(nAccess) + ")");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue