Changed the RESET button to *not* autoStart a machine when a Debugger is present, so that the Debugger can "cleanly" load bootstrap sequences and boot without side-effects (eg, unexpected interrupts)
This commit is contained in:
parent
c9d8413a1d
commit
4be8640af8
8 changed files with 250 additions and 54 deletions
|
|
@ -920,6 +920,11 @@ class DriveController extends Component {
|
|||
drive.sDiskName = sDiskName;
|
||||
drive.sDiskPath = sDiskPath;
|
||||
|
||||
/*
|
||||
* Inform the controller implementation (eg, RX11) of the disk change.
|
||||
*/
|
||||
this.notifyLoad(drive.iDrive);
|
||||
|
||||
/*
|
||||
* Adding local disk image names to the disk list seems like a nice idea, but it's too confusing,
|
||||
* because then it looks like the "Mount" button should be able to (re)load them, and that can NEVER
|
||||
|
|
@ -1123,6 +1128,11 @@ class DriveController extends Component {
|
|||
this.sDiskSource = DriveController.SOURCE.NONE;
|
||||
this.displayDisk(iDrive);
|
||||
}
|
||||
|
||||
/*
|
||||
* Inform the controller implementation (eg, RX11) of the disk removal.
|
||||
*/
|
||||
this.notifyUnload(iDrive);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1223,6 +1233,30 @@ class DriveController extends Component {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* notifyLoad(iDrive)
|
||||
*
|
||||
* Placeholder for subclasses. Called whenever DriveController has loaded a new disk into the specified drive.
|
||||
*
|
||||
* @this {RX11}
|
||||
* @param {number} iDrive
|
||||
*/
|
||||
notifyLoad(iDrive)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* notifyUnload(iDrive)
|
||||
*
|
||||
* Placeholder for subclasses. Called whenever DriveController has unloaded a disk from the specified drive.
|
||||
*
|
||||
* @this {RX11}
|
||||
* @param {number} iDrive
|
||||
*/
|
||||
notifyUnload(iDrive)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* readData(drive, iCylinder, iHead, iSector, nWords, addr, inc, fCheck, done)
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue