mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-09 17:31:18 +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) {
|
FloppyController(PIC &pic, DMA &dma, int drive_count) : pic_(pic), dma_(dma) {
|
||||||
// Default: one floppy drive only.
|
// Default: one floppy drive only.
|
||||||
for(int c = 0; c < 4; c++) {
|
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.
|
// Ignore serial port accesses.
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user