mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-03 22:33:29 +00:00
Fix drive enables, go back to FF for non-existent ports.
This commit is contained in:
parent
084efdeb2d
commit
5576588c2d
@ -63,7 +63,7 @@ class FloppyController {
|
||||
FloppyController(PIC &pic, DMA &dma, int drive_count) : pic_(pic), dma_(dma) {
|
||||
// Default: one floppy drive only.
|
||||
for(int c = 0; c < 4; c++) {
|
||||
drives_[0].exists = drive_count >= c;
|
||||
drives_[c].exists = drive_count > c;
|
||||
}
|
||||
}
|
||||
|
||||
@ -795,7 +795,7 @@ class IO {
|
||||
// Ignore serial port accesses.
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
return 0xff;
|
||||
}
|
||||
|
||||
private:
|
||||
|
Loading…
x
Reference in New Issue
Block a user