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

Method SetWriteMode

source/Disk.cpp:1947–1963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1945//===========================================================================
1946
1947void __stdcall Disk2InterfaceCard::SetWriteMode(WORD, WORD, BYTE, BYTE, ULONG uExecutedCycles)
1948{
1949 m_formatTrack.DriveSwitchedToWriteMode(m_floppyDrive[m_currDrive].m_disk.m_byte);
1950
1951 BOOL modechange = !m_floppyDrive[m_currDrive].m_writelight;
1952#if LOG_DISK_RW_MODE
1953 LOG_DISK("rw mode: write (mode changed=%d)\r\n", modechange ? 1 : 0);
1954#endif
1955#if LOG_DISK_NIBBLES_WRITE
1956 m_uWriteLastCycle = 0;
1957#endif
1958
1959 m_floppyDrive[m_currDrive].m_writelight = WRITELIGHT_CYCLES;
1960
1961 if (modechange)
1962 GetFrame().FrameDrawDiskLEDS();
1963}
1964
1965//===========================================================================
1966

Callers 2

IOReadMethod · 0.80
IOWriteMethod · 0.80

Calls 2

FrameDrawDiskLEDSMethod · 0.80

Tested by

no test coverage detected