Thanks, Fudge,
It's still a bit premature though, I'm not 100% on the MSEQ data, but I can always plug the N64 back in and do some more captures for that.
tbh, I'm not even a major gamer, I just loved the N64 hardware from the minute it was released. It's more about the technical challenge for me I suppose.
Oh btw, can anyone help work out how the hell the "heads" relates to the sector sizes etc? If you look at Twili's table here, you'll see what I mean...
http://www.assemblergames.com/forum...DD-disk-format&p=521007&viewfull=1#post521007
We need to find the relationship between any given LBA / Track number, and the sector size (Bytes per sector)...
The "official" numbers are as follows, but I don't understand how the "Heads" part comes into it?...
#define C1_LENGTH 7 /* Number of bytes of C1 code per sector */
#define SEC_SIZE_ZONE0 232 /* Number of bytes in a Zone 0 sector */
#define SEC_SIZE_ZONE1 216 /* Number of bytes in a Zone 1 sector */
#define SEC_SIZE_ZONE2 208 /* Number of bytes in a Zone 2 sector */
#define SEC_SIZE_ZONE3 192 /* Number of bytes in a Zone 3 sector */
#define SEC_SIZE_ZONE4 176 /* Number of bytes in a Zone 4 sector */
#define SEC_SIZE_ZONE5 160 /* Number of bytes in a Zone 5 sector */
#define SEC_SIZE_ZONE6 144 /* Number of bytes in a Zone 6 sector */
#define SEC_SIZE_ZONE7 128 /* Number of bytes in a Zone 7 sector */
#define SEC_SIZE_ZONE8 112 /* Number of bytes in a Zone 8 sector */
#define GAP_BYTES_ZONE0 4
#define TK_PER_ZONE0_HD0 150 /* Number of tracks for head 0, zone 0(including alternates and system area) */
#define TK_PER_ZONE1_HD0 150 /* Number of tracks for head 0, zone 1(including alternates) */
#define TK_PER_ZONE2_HD0 141 /* Number of tracks for head 0, zone 2(including alternates) */
#define TK_PER_ZONE3_HD0 141 /* Number of tracks for head 0, zone 3(including alternates) */
#define TK_PER_ZONE4_HD0 141 /* Number of tracks for head 0, zone 4(including alternates) */
#define TK_PER_ZONE5_HD0 141 /* Number of tracks for head 0, zone 5(including alternates) */
#define TK_PER_ZONE6_HD0 141 /* Number of tracks for head 0, zone 6(including alternates) */
#define TK_PER_ZONE7_HD0 106 /* Number of tracks for head 0, zone 7(including alternates) */
#define TK_PER_ZONE1_HD1 150 /* Number of tracks for head 1, zone 1(including alternates) */
#define TK_PER_ZONE2_HD1 150 /* Number of tracks for head 1, zone 2(including alternates) */
#define TK_PER_ZONE3_HD1 141 /* Number of tracks for head 1, zone 3(including alternates) */
#define TK_PER_ZONE4_HD1 141 /* Number of tracks for head 1, zone 4(including alternates) */
#define TK_PER_ZONE5_HD1 141 /* Number of tracks for head 1, zone 5(including alternates) */
#define TK_PER_ZONE6_HD1 141 /* Number of tracks for head 1, zone 6(including alternates) */
#define TK_PER_ZONE7_HD1 141 /* Number of tracks for head 1, zone 7(including alternates) */
#define TK_PER_ZONE8_HD1 106 /* Number of tracks for head 1, zone 8(including alternates) */
I can understand that for a Track number greater than 300, it would then be in Zone 2 (141 Tracks, but for Head 0)...
But, for Head 1, Zone 2 has 150 Tracks? I can't see a specific parameter which would select either Head, so how can the same Zone have two different numbers of Tracks??
I'm assuming the heads are staggered, but surely they can't be an entire Zone apart?...
............Zone
............0......1......2......3......4......5......6......7......8
Head 0..^
Head 1..........^
Note: The "Zones" are mainly needed to work out the "Bytes per Sector", because it varies depending on the current Zone.
The number of Sectors per Block is constant, but there are actually some extra sectors for C2 (error correction) and 1 Gap sector between Blocks...
// There are 12 TRACKS (0 to 11) / 24 BLOCKS (0 to 23) reserved for the "System" area.
// Pretty certain that the System Area starts at BLOCK 0 / TRACK 0 / ZONE 0 (the comment after "TK_PER_ZONE0_HD0" above says the System Area is in Zone 0).
//
//
// Each SECTOR contains...
// [ 232 Bytes of USER DATA + 7 BYTES of C1 ] <- Note: The number of BYTES per SECTOR depends on the ZONE!!
//
// Each BLOCK contains...
// [ 85 SECTORS + 4 C2 SECTORS + 1 GAP SECTOR ] <- Total number of SECTORS per BLOCK == "ALL_SECS_PER_BLK" == 90 (0x5A).
//
// Each TRACK (one disk rotation, or could be Head 0 / Head 1 so a Block on each side?)...
// [ FIRST BLOCK + SECOND BLOCK ]
I'm fairly sure each block has the 7 C1 Bytes added to the given "Bytes per sector" values, so for Zone 0, there are actually 239 Bytes per sector?
And due to the extra C2 and Gap sectors, there are actually 90 Sectors per Block?
Of course, after the error correction and Gap sectors are discarded, you just end up with the "User Data" only.
For emulation, there may be a way around all of this. You just read all the Blocks into a file, but use the maximum "Bytes per sector" when storing each Block.
This will obviously make the image file bigger, but it will then be simpler to find correct data. Then again, we'd still need to figure out all of this crap to read the disk in the first place. :witless:
btw, I don't think it's a problem posting some of this info here seeing that the majority of this stuff is available from things like the Acclaim data dump (and that is HUGE!).
If anything looks a tad dodgy, please let me know ASAP.
OzOnE.
It's still a bit premature though, I'm not 100% on the MSEQ data, but I can always plug the N64 back in and do some more captures for that.
tbh, I'm not even a major gamer, I just loved the N64 hardware from the minute it was released. It's more about the technical challenge for me I suppose.
Oh btw, can anyone help work out how the hell the "heads" relates to the sector sizes etc? If you look at Twili's table here, you'll see what I mean...
http://www.assemblergames.com/forum...DD-disk-format&p=521007&viewfull=1#post521007
We need to find the relationship between any given LBA / Track number, and the sector size (Bytes per sector)...
The "official" numbers are as follows, but I don't understand how the "Heads" part comes into it?...
#define C1_LENGTH 7 /* Number of bytes of C1 code per sector */
#define SEC_SIZE_ZONE0 232 /* Number of bytes in a Zone 0 sector */
#define SEC_SIZE_ZONE1 216 /* Number of bytes in a Zone 1 sector */
#define SEC_SIZE_ZONE2 208 /* Number of bytes in a Zone 2 sector */
#define SEC_SIZE_ZONE3 192 /* Number of bytes in a Zone 3 sector */
#define SEC_SIZE_ZONE4 176 /* Number of bytes in a Zone 4 sector */
#define SEC_SIZE_ZONE5 160 /* Number of bytes in a Zone 5 sector */
#define SEC_SIZE_ZONE6 144 /* Number of bytes in a Zone 6 sector */
#define SEC_SIZE_ZONE7 128 /* Number of bytes in a Zone 7 sector */
#define SEC_SIZE_ZONE8 112 /* Number of bytes in a Zone 8 sector */
#define GAP_BYTES_ZONE0 4
#define TK_PER_ZONE0_HD0 150 /* Number of tracks for head 0, zone 0(including alternates and system area) */
#define TK_PER_ZONE1_HD0 150 /* Number of tracks for head 0, zone 1(including alternates) */
#define TK_PER_ZONE2_HD0 141 /* Number of tracks for head 0, zone 2(including alternates) */
#define TK_PER_ZONE3_HD0 141 /* Number of tracks for head 0, zone 3(including alternates) */
#define TK_PER_ZONE4_HD0 141 /* Number of tracks for head 0, zone 4(including alternates) */
#define TK_PER_ZONE5_HD0 141 /* Number of tracks for head 0, zone 5(including alternates) */
#define TK_PER_ZONE6_HD0 141 /* Number of tracks for head 0, zone 6(including alternates) */
#define TK_PER_ZONE7_HD0 106 /* Number of tracks for head 0, zone 7(including alternates) */
#define TK_PER_ZONE1_HD1 150 /* Number of tracks for head 1, zone 1(including alternates) */
#define TK_PER_ZONE2_HD1 150 /* Number of tracks for head 1, zone 2(including alternates) */
#define TK_PER_ZONE3_HD1 141 /* Number of tracks for head 1, zone 3(including alternates) */
#define TK_PER_ZONE4_HD1 141 /* Number of tracks for head 1, zone 4(including alternates) */
#define TK_PER_ZONE5_HD1 141 /* Number of tracks for head 1, zone 5(including alternates) */
#define TK_PER_ZONE6_HD1 141 /* Number of tracks for head 1, zone 6(including alternates) */
#define TK_PER_ZONE7_HD1 141 /* Number of tracks for head 1, zone 7(including alternates) */
#define TK_PER_ZONE8_HD1 106 /* Number of tracks for head 1, zone 8(including alternates) */
I can understand that for a Track number greater than 300, it would then be in Zone 2 (141 Tracks, but for Head 0)...
But, for Head 1, Zone 2 has 150 Tracks? I can't see a specific parameter which would select either Head, so how can the same Zone have two different numbers of Tracks??
I'm assuming the heads are staggered, but surely they can't be an entire Zone apart?...
............Zone
............0......1......2......3......4......5......6......7......8
Head 0..^
Head 1..........^
Note: The "Zones" are mainly needed to work out the "Bytes per Sector", because it varies depending on the current Zone.
The number of Sectors per Block is constant, but there are actually some extra sectors for C2 (error correction) and 1 Gap sector between Blocks...
// There are 12 TRACKS (0 to 11) / 24 BLOCKS (0 to 23) reserved for the "System" area.
// Pretty certain that the System Area starts at BLOCK 0 / TRACK 0 / ZONE 0 (the comment after "TK_PER_ZONE0_HD0" above says the System Area is in Zone 0).
//
//
// Each SECTOR contains...
// [ 232 Bytes of USER DATA + 7 BYTES of C1 ] <- Note: The number of BYTES per SECTOR depends on the ZONE!!
//
// Each BLOCK contains...
// [ 85 SECTORS + 4 C2 SECTORS + 1 GAP SECTOR ] <- Total number of SECTORS per BLOCK == "ALL_SECS_PER_BLK" == 90 (0x5A).
//
// Each TRACK (one disk rotation, or could be Head 0 / Head 1 so a Block on each side?)...
// [ FIRST BLOCK + SECOND BLOCK ]
I'm fairly sure each block has the 7 C1 Bytes added to the given "Bytes per sector" values, so for Zone 0, there are actually 239 Bytes per sector?
And due to the extra C2 and Gap sectors, there are actually 90 Sectors per Block?
Of course, after the error correction and Gap sectors are discarded, you just end up with the "User Data" only.
For emulation, there may be a way around all of this. You just read all the Blocks into a file, but use the maximum "Bytes per sector" when storing each Block.
This will obviously make the image file bigger, but it will then be simpler to find correct data. Then again, we'd still need to figure out all of this crap to read the disk in the first place. :witless:
btw, I don't think it's a problem posting some of this info here seeing that the majority of this stuff is available from things like the Acclaim data dump (and that is HUGE!).
If anything looks a tad dodgy, please let me know ASAP.
OzOnE.
![[IMG]](https://web.archive.org/web/2im_/http://i49.tinypic.com/69f0ba.jpg)
