Update boot code to pass boot unit # through to R0

This commit is contained in:
Jeff Parsons 2017-02-03 10:17:49 -08:00 committed by Jeff Parsons
commit 039c6c8ef1
4 changed files with 148 additions and 150 deletions

View file

@ -820,7 +820,7 @@ class DriveController extends Component {
* expects the controller to be in a READY state; since setReset() triggers a call to our reset() handler,
* a READY state is assured, and the readData() call shouldn't do anything to change that.
*/
this.cpu.setReset(0, true);
this.cpu.setReset(0, true, iDrive);
var err = this.readData(drive, drive.iCylinderBoot, drive.iHeadBoot, drive.iSectorBoot, drive.cbSectorBoot, 0x0000, 2);
if (err) {
this.notice("Unable to read the boot sector (" + err + ")");