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

Method InitializeIO

source/Disk.cpp:2102–2120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2100}
2101
2102void Disk2InterfaceCard::InitializeIO(LPBYTE pCxRomPeripheral)
2103{
2104 bool res = GetFirmware(IDR_DISK2_13SECTOR_FW, m_13SectorFirmware);
2105 _ASSERT(res);
2106
2107 res = GetFirmware(IDR_DISK2_16SECTOR_FW, m_16SectorFirmware);
2108 _ASSERT(res);
2109
2110 // Note: We used to disable the track stepping delay in the Disk II controller firmware by
2111 // patching $C64C with $A9,$00,$EA. Now not doing this since:
2112 // . Authentic Speed should be authentic
2113 // . Enhanced Speed runs emulation unthrottled, so removing the delay has negligible effect
2114 // . Patching the firmware breaks the ADC checksum used by "The CIA Files" (Tricky Dick)
2115 // . In this case we can patch to compensate for an ADC or EOR checksum but not both (nickw)
2116
2117 RegisterIoHandler(m_slot, &Disk2InterfaceCard::IORead, &Disk2InterfaceCard::IOWrite, NULL, NULL, this, NULL);
2118
2119 InitFirmware(pCxRomPeripheral);
2120}
2121
2122//===========================================================================
2123

Callers

nothing calls this directly

Calls 1

RegisterIoHandlerFunction · 0.85

Tested by

no test coverage detected