mirror of
https://github.com/TomHarte/CLK.git
synced 2025-02-18 16:30:29 +00:00
Moves gap 1 into proper ownership.
This commit is contained in:
parent
28f2d331a8
commit
a694844190
@ -72,11 +72,11 @@ std::shared_ptr<Track> AppleDSK::get_track_at_position(Track::Address address) {
|
|||||||
Storage::Disk::PCMSegment segment;
|
Storage::Disk::PCMSegment segment;
|
||||||
const uint8_t track = static_cast<uint8_t>(address.position.as_int());
|
const uint8_t track = static_cast<uint8_t>(address.position.as_int());
|
||||||
|
|
||||||
|
// In either case below, the code aims for exactly 50,000 bits per track.
|
||||||
|
if(sectors_per_track_ == 16) {
|
||||||
// Write gap 1.
|
// Write gap 1.
|
||||||
segment += Encodings::AppleGCR::six_and_two_sync(16);
|
segment += Encodings::AppleGCR::six_and_two_sync(16);
|
||||||
|
|
||||||
// In either case below, the code aims for exactly 50,000 bits per track.
|
|
||||||
if(sectors_per_track_ == 16) {
|
|
||||||
// Write the sectors.
|
// Write the sectors.
|
||||||
for(uint8_t c = 0; c < 16; ++c) {
|
for(uint8_t c = 0; c < 16; ++c) {
|
||||||
segment += Encodings::AppleGCR::header(254, track, c);
|
segment += Encodings::AppleGCR::header(254, track, c);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user