MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / encode_side

Function encode_side

arch/macintosh/encoder.cc:163–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163static uint8_t encode_side(uint8_t track, uint8_t side)
164{
165 /* Mac disks, being weird, use the side byte to encode both the side (in
166 * bit 5) and also whether we're above track 0x3f (in bit 0).
167 */
168
169 return (side ? 0x20 : 0x00) | ((track > 0x3f) ? 0x01 : 0x00);
170}
171
172static void write_sector(std::vector<bool>& bits,
173 unsigned& cursor,

Callers 1

write_sectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected