Comment typo fix.

This commit is contained in:
David Given
2021-01-05 01:36:00 +01:00
parent 088381a5a6
commit cb4ee0fd74
2 changed files with 2 additions and 2 deletions

View File

@@ -118,7 +118,7 @@ static Bytes decode_crazy_data(const Bytes& input, Sector::Status& status)
uint8_t decode_side(uint8_t side)
{
/* Mac disks, being weird, use the side byte to encode both the side (in
* bit 5) and also whether we're above track 0x3f (in bit 6).
* bit 5) and also whether we're above track 0x3f (in bit 0).
*/
return !!(side & 0x20);

View File

@@ -164,7 +164,7 @@ static void write_bits(std::vector<bool>& bits, unsigned& cursor, uint64_t data,
static uint8_t encode_side(uint8_t track, uint8_t side)
{
/* Mac disks, being weird, use the side byte to encode both the side (in
* bit 5) and also whether we're above track 0x3f (in bit 6).
* bit 5) and also whether we're above track 0x3f (in bit 0).
*/
return (side ? 0x20 : 0x00) | ((track>0x3f) ? 0x01 : 0x00);