diff options
Diffstat (limited to 'src/floppy.c')
-rw-r--r-- | src/floppy.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/floppy.c b/src/floppy.c index 6214acba..43e6c1eb 100644 --- a/src/floppy.c +++ b/src/floppy.c @@ -39,6 +39,23 @@ struct floppy_ext_dbt_s diskette_param_table2 VAR16_32 = { .drive_type = 4, // drive type in cmos }; +// Since no provisions are made for multiple drive types, most +// values in this table are ignored. I set parameters for 1.44M +// floppy here +struct floppy_dbt_s diskette_param_table VAR16FIXED(0xefc7) = { + .specify1 = 0xAF, + .specify2 = 0x02, // head load time 0000001, DMA used + .shutoff_ticks = 0x25, + .bps_code = 0x02, + .sectors = 18, + .interblock_len = 0x1B, + .data_len = 0xFF, + .gap_len = 0x6C, + .fill_byte = 0xF6, + .settle_time = 0x0F, + .startup_time = 0x08, +}; + void floppy_drive_setup() { |