| Previous | 199869 Revisions | Next |
| r19063 Tuesday 20th November, 2012 at 07:37:44 UTC by O. Galibert |
|---|
| Yes, it *is* possible to have two errors in the same line (nw) |
| [src/lib/formats] | imd_dsk.c |
| r19062 | r19063 | |
|---|---|---|
| 419 | 419 | static const int rates[3] = { 500000, 300000, 250000 }; |
| 420 | 420 | bool fm = mode < 3; |
| 421 | 421 | int rate = rates[mode % 3]; |
| 422 | int rpm = form_factor == floppy_image::FF_8 || (form_factor == floppy_image::FF_525 && rate >= 300) ? 360 : 300; | |
| 422 | int rpm = form_factor == floppy_image::FF_8 || (form_factor == floppy_image::FF_525 && rate >= 300000) ? 360 : 300; | |
| 423 | 423 | int cell_count = (fm ? 1 : 2)*rate*60/rpm; |
| 424 | 424 | |
| 425 | 425 | const UINT8 *snum = img+pos; |
| Previous | 199869 Revisions | Next |