MODEL_5170_REV3 boots without errors now

However, performance will suffer until I can implement RTC interrupts;
also, there may be a problem exposed by the BIOS memory test following a soft reset
This commit is contained in:
Jeff Parsons 2014-10-14 16:07:46 -07:00 committed by jeffpar
commit 997db9787b
15 changed files with 1557 additions and 1282 deletions

View file

@ -1968,10 +1968,10 @@ Video.prototype.intBIOSVideo = function(addr)
if (DEBUGGER) {
if (this.dbg && this.dbg.messageEnabled(this.dbg.MESSAGE_VIDEO)) {
this.dbg.message("Video.intBIOS(AX=" + str.toHexWord(this.cpu.regAX) + ") at " + str.toHexAddr(addr - this.cpu.segCS.base, this.cpu.segCS.sel));
// this.cpu.haltCPU();
this.cpu.addInterruptReturn(addr, function (video, nCycles) {
return function onBIOSVideoReturn(nLevel) {
video.intBIOSVideoReturn(nCycles, nLevel);
nCycles = video.cpu.getCycles() - nCycles;
video.messageDebugger("Video.intBIOSReturn(" + nLevel + ") (cycles=" + nCycles + ")");
};
}(this, this.cpu.getCycles()));
}
@ -1979,22 +1979,6 @@ Video.prototype.intBIOSVideo = function(addr)
return true;
};
/**
* intBIOSVideoReturn(nCycles, nLevel)
*
* @this {Video}
* @param {number} nCycles
* @param {number} nLevel
*/
Video.prototype.intBIOSVideoReturn = function(nCycles, nLevel)
{
if (DEBUGGER) {
nCycles = this.cpu.getCycles() - nCycles;
this.messageDebugger("Video.intBIOSReturn(" + nLevel + ") (cycles=" + nCycles + ")");
// if (DEBUG && nCycles > 10000) this.cpu.haltCPU();
}
};
/**
* setBinding(sHTMLClass, sHTMLType, sBinding, control)
*