--- xmil/fdd/d88head.h 2004/08/01 05:31:30 1.1 +++ xmil/fdd/d88head.h 2004/08/05 11:30:12 1.3 @@ -1,4 +1,10 @@ +enum { + D88_TRACKMAX = 164, + D88_HEADERSIZE = 0x20 + (D88_TRACKMAX * 4) +}; + + #if defined(__GNUC__) // D88ヘッダ (size: 2b0h bytes) typedef struct { @@ -7,7 +13,6 @@ typedef struct { UINT8 protect; // Write Protect bit:4 UINT8 fd_type; // Disk Format UINT8 fd_size[4]; // Disk Size - UINT8 trackp[164][4]; // Track_pointer } __attribute__ ((packed)) _D88HEAD, *D88HEAD; // D88セクタ (size: 16bytes) @@ -24,7 +29,7 @@ typedef struct { UINT8 reserved[3]; // Reserved UINT8 rpm_flg; // rpm 0:1.2 1:1.44 UINT8 size[2]; // Sector Size -} __attribute__ ((packed)) _D88SEC, *D88SEC, D88_SECTOR; +} __attribute__ ((packed)) _D88SEC, *D88SEC; #else #pragma pack(push, 1) // D88ヘッダ (size: 2b0h bytes) @@ -34,7 +39,6 @@ typedef struct { UINT8 protect; // Write Protect bit:4 UINT8 fd_type; // Disk Format UINT8 fd_size[4]; // Disk Size - UINT8 trackp[164][4]; // Track_pointer } _D88HEAD, *D88HEAD; // D88セクタ (size: 16bytes)