MCPcopy Create free account
hub / github.com/AppleWin/AppleWin / DriveNotWritingTrack

Method DriveNotWritingTrack

source/DiskFormatTrack.cpp:70–83  ·  view source on GitHub ↗

Occurs on these conditions: . spin > 2 bytes (empirical from inspecting DOS3.3-INIT/ProDOS-FORMAT operations) . drive stepper track change . drive motor state change . switch to read mode after having written a complete track

Source from the content-addressed store, hash-verified

68// . drive motor state change
69// . switch to read mode after having written a complete track
70void FormatTrack::DriveNotWritingTrack(void)
71{
72 m_bmWrittenSectorAddrFields = 0x0000;
73 m_WriteTrackStartIndex = 0;
74 m_WriteTrackHasWrapped = false;
75 m_WriteDataFieldPrologueCount = 0;
76 m_bAddressPrologueIsDOS3_2 = false;
77
78#if LOG_DISK_NIBBLES_WRITE_TRACK_GAPS
79 m_DbgGap1Size = 0;
80 m_DbgGap2Size = 0;
81 m_DbgGap3Size = -1; // Data Field's epilogue has an extra 0xFF, which isn't part of the Gap3 sync-FF field
82#endif
83}
84
85void FormatTrack::UpdateOnWriteLatch(UINT uSpinNibbleCount, const FloppyDisk* const pFloppy)
86{

Callers 2

ControlMotorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected