mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-10 13:29:38 +00:00
floppyimg: correct format for MFM DC42 images.
This commit is contained in:
parent
df02f5053b
commit
78528a1a16
@ -238,6 +238,7 @@ int DiskCopy42Img::calc_phys_params() {
|
|||||||
this->density = 0; // assume double density by default
|
this->density = 0; // assume double density by default
|
||||||
|
|
||||||
this->num_tracks = 80;
|
this->num_tracks = 80;
|
||||||
|
this->num_sides = ((this->format_byte >> 5) & 1) + 1;
|
||||||
|
|
||||||
switch (disk_format) {
|
switch (disk_format) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -248,19 +249,19 @@ int DiskCopy42Img::calc_phys_params() {
|
|||||||
case 2:
|
case 2:
|
||||||
this->rec_method = 1; // MFM
|
this->rec_method = 1; // MFM
|
||||||
this->num_sectors = 1440;
|
this->num_sectors = 1440;
|
||||||
|
this->format_byte = 2;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
this->rec_method = 1; // MFM
|
this->rec_method = 1; // MFM
|
||||||
this->density = 1; // report high density
|
this->density = 1; // report high density
|
||||||
this->num_sectors = 2880;
|
this->num_sectors = 2880;
|
||||||
|
this->format_byte = 2;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
LOG_F(ERROR, "DiskCopy42Img: invalid disk format %X", disk_format);
|
LOG_F(ERROR, "DiskCopy42Img: invalid disk format %X", disk_format);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->num_sides = ((this->format_byte >> 5) & 1) + 1;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user