|
|
| version 1.7, 2004/03/08 15:27:07 | version 1.8, 2005/02/07 14:46:09 |
|---|---|
| Line 24 static const _XDFINFO supportxdf[] = { | Line 24 static const _XDFINFO supportxdf[] = { |
| }; | }; |
| typedef struct { | typedef struct { |
| BYTE dummy[4]; | UINT8 dummy[4]; |
| BYTE fddtype[4]; | UINT8 fddtype[4]; |
| BYTE headersize[4]; | UINT8 headersize[4]; |
| BYTE fddsize[4]; | UINT8 fddsize[4]; |
| BYTE sectorsize[4]; | UINT8 sectorsize[4]; |
| BYTE sectors[4]; | UINT8 sectors[4]; |
| BYTE surfaces[4]; | UINT8 surfaces[4]; |
| BYTE cylinders[4]; | UINT8 cylinders[4]; |
| } FDIHDR; | } FDIHDR; |
| Line 55 const _XDFINFO *xdf; | Line 55 const _XDFINFO *xdf; |
| file_close(fh); | file_close(fh); |
| xdf = supportxdf; | xdf = supportxdf; |
| while(xdf < (supportxdf + (sizeof(supportxdf)/sizeof(_XDFINFO)))) { | while(xdf < (supportxdf + NELEMENTS(supportxdf))) { |
| size = xdf->tracks; | size = xdf->tracks; |
| size *= xdf->sectors; | size *= xdf->sectors; |
| size <<= (7 + xdf->n); | size <<= (7 + xdf->n); |