summaryrefslogtreecommitdiffstats
path: root/src/lib/formats/d81_dsk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/formats/d81_dsk.c')
-rw-r--r--src/lib/formats/d81_dsk.c80
1 files changed, 40 insertions, 40 deletions
diff --git a/src/lib/formats/d81_dsk.c b/src/lib/formats/d81_dsk.c
index 1d5bfcb767b..b3924ab6a36 100644
--- a/src/lib/formats/d81_dsk.c
+++ b/src/lib/formats/d81_dsk.c
@@ -137,46 +137,46 @@ const d81_format::format d81_format::formats[] = {
floppy_image_format_t::desc_e* d81_format::get_desc_mfm(const format &f, int &current_size, int &end_gap_index)
{
- static floppy_image_format_t::desc_e desc[25] = {
- /* 00 */ { MFM, 0x4e, f.gap_1 },
- /* 01 */ { SECTOR_LOOP_START, 0, f.sector_count-1 },
- /* 02 */ { MFM, 0x00, 12 },
- /* 03 */ { CRC_CCITT_START, 1 },
- /* 04 */ { RAW, 0x4489, 3 },
- /* 05 */ { MFM, 0xfe, 1 },
- /* 06 */ { TRACK_ID },
- /* 07 */ { HEAD_ID_SWAP },
- /* 08 */ { SECTOR_ID },
- /* 09 */ { SIZE_ID },
- /* 10 */ { CRC_END, 1 },
- /* 11 */ { CRC, 1 },
- /* 12 */ { MFM, 0x4e, f.gap_2 },
- /* 13 */ { MFM, 0x00, 12 },
- /* 14 */ { CRC_CCITT_START, 2 },
- /* 15 */ { RAW, 0x4489, 3 },
- /* 16 */ { MFM, 0xfb, 1 },
- /* 17 */ { SECTOR_DATA, -1 },
- /* 18 */ { CRC_END, 2 },
- /* 19 */ { CRC, 2 },
- /* 20 */ { MFM, 0x4e, f.gap_3 },
- /* 21 */ { SECTOR_LOOP_END },
- /* 22 */ { MFM, 0x4e, 0 },
- /* 23 */ { RAWBITS, 0x9254, 0 },
- /* 24 */ { END }
- };
-
- current_size = f.gap_1*16;
- if(f.sector_base_size)
- current_size += f.sector_base_size * f.sector_count * 16;
- else {
- for(int j=0; j != f.sector_count; j++)
- current_size += f.per_sector_size[j] * 16;
- }
- current_size += (12+3+1+4+2+f.gap_2+12+3+1+2+f.gap_3) * f.sector_count * 16;
-
- end_gap_index = 22;
-
- return desc;
+ static floppy_image_format_t::desc_e desc[25] = {
+ /* 00 */ { MFM, 0x4e, f.gap_1 },
+ /* 01 */ { SECTOR_LOOP_START, 0, f.sector_count-1 },
+ /* 02 */ { MFM, 0x00, 12 },
+ /* 03 */ { CRC_CCITT_START, 1 },
+ /* 04 */ { RAW, 0x4489, 3 },
+ /* 05 */ { MFM, 0xfe, 1 },
+ /* 06 */ { TRACK_ID },
+ /* 07 */ { HEAD_ID_SWAP },
+ /* 08 */ { SECTOR_ID },
+ /* 09 */ { SIZE_ID },
+ /* 10 */ { CRC_END, 1 },
+ /* 11 */ { CRC, 1 },
+ /* 12 */ { MFM, 0x4e, f.gap_2 },
+ /* 13 */ { MFM, 0x00, 12 },
+ /* 14 */ { CRC_CCITT_START, 2 },
+ /* 15 */ { RAW, 0x4489, 3 },
+ /* 16 */ { MFM, 0xfb, 1 },
+ /* 17 */ { SECTOR_DATA, -1 },
+ /* 18 */ { CRC_END, 2 },
+ /* 19 */ { CRC, 2 },
+ /* 20 */ { MFM, 0x4e, f.gap_3 },
+ /* 21 */ { SECTOR_LOOP_END },
+ /* 22 */ { MFM, 0x4e, 0 },
+ /* 23 */ { RAWBITS, 0x9254, 0 },
+ /* 24 */ { END }
+ };
+
+ current_size = f.gap_1*16;
+ if(f.sector_base_size)
+ current_size += f.sector_base_size * f.sector_count * 16;
+ else {
+ for(int j=0; j != f.sector_count; j++)
+ current_size += f.per_sector_size[j] * 16;
+ }
+ current_size += (12+3+1+4+2+f.gap_2+12+3+1+2+f.gap_3) * f.sector_count * 16;
+
+ end_gap_index = 22;
+
+ return desc;
}
const floppy_format_type FLOPPY_D81_FORMAT = &floppy_image_format_creator<d81_format>;