diff options
author | Nikolay Nikolov <nickysn@users.sourceforge.net> | 2018-02-10 13:52:15 +0200 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2018-02-15 00:18:14 -0500 |
commit | 81f45a62e8692bd84276d570833fec2a77c25c8e (patch) | |
tree | af2806c40b7f4ae4059e5d6918691e0b475afa1c | |
parent | f9cc969b3e67010627b3de6e989752e01b333ce2 (diff) | |
download | seabios-81f45a62e8692bd84276d570833fec2a77c25c8e.tar.gz |
floppy: Support up to 4 floppy drives when turning on the floppy motor
The previous version allowed for only two floppies.
Signed-off-by: Nikolay Nikolov <nickysn@users.sourceforge.net>
-rw-r--r-- | src/hw/floppy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hw/floppy.c b/src/hw/floppy.c index 5a7e6b97..730aadc0 100644 --- a/src/hw/floppy.c +++ b/src/hw/floppy.c @@ -358,7 +358,7 @@ floppy_drive_pio(u8 floppyid, int command, u8 *param) SET_BDA(floppy_motor_counter, 255); // Turn on motor of selected drive, DMA & int enabled, normal operation - floppy_dor_write((floppyid ? FLOPPY_DOR_MOTOR_B : FLOPPY_DOR_MOTOR_A) | FLOPPY_DOR_IRQ | FLOPPY_DOR_RESET | floppyid); + floppy_dor_write((FLOPPY_DOR_MOTOR_A << floppyid) | FLOPPY_DOR_IRQ | FLOPPY_DOR_RESET | floppyid); // Send command. int ret = floppy_pio(command, param); |