| 57 | const BYTE Disk2InterfaceCard::m_T00S00Pattern[] = {0xD5,0xAA,0x96,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xAA,0xDE}; |
| 58 | |
| 59 | Disk2InterfaceCard::Disk2InterfaceCard(UINT slot) : |
| 60 | Card(CT_Disk2, slot), |
| 61 | m_syncEvent(slot, 0, SyncEventCallback) // use slot# as "unique" id for Disk2InterfaceCards |
| 62 | { |
| 63 | if (m_slot == SLOT0) |
| 64 | ThrowErrorInvalidSlot(); |
| 65 | |
| 66 | ResetSwitches(); |
| 67 | |
| 68 | m_floppyLatch = 0; |
| 69 | m_saveDiskImage = true; // Save the DiskImage name to Registry |
| 70 | m_saveDiskImageToRegistry = true; |
| 71 | m_diskLastCycle = 0; |
| 72 | m_diskLastReadLatchCycle = 0; |
| 73 | m_enhanceDisk = kEnhanceDiskAccessSpeed_Default; |
| 74 | m_is13SectorFirmware = false; // depends on m_force13SectorFirmware & woz image metadata |
| 75 | m_deferredStepperEvent = false; |
| 76 | m_deferredStepperAddress = 0; |
| 77 | m_deferredStepperCumulativeCycles = 0; |
| 78 | |
| 79 | uint32_t tmp; |
| 80 | std::string regSection = RegGetConfigSlotSection(m_slot); |
| 81 | const uint32_t kForce13SectorFirmware_Default = 0; |
| 82 | RegLoadValue(regSection.c_str(), REGVALUE_DISKII_13_SECTOR_FIRMWARE, TRUE, &tmp, kForce13SectorFirmware_Default); |
| 83 | m_force13SectorFirmware = tmp ? true : false; |
| 84 | |
| 85 | ResetLogicStateSequencer(); |
| 86 | |
| 87 | // Debug: |
| 88 | #if LOG_DISK_NIBBLES_USE_RUNTIME_VAR |
| 89 | m_bLogDisk_NibblesRW = false; |
| 90 | #endif |
| 91 | #if LOG_DISK_NIBBLES_WRITE |
| 92 | m_uWriteLastCycle = 0; |
| 93 | m_uSyncFFCount = 0; |
| 94 | #endif |
| 95 | } |
| 96 | |
| 97 | Disk2InterfaceCard::~Disk2InterfaceCard(void) |
| 98 | { |
nothing calls this directly
no test coverage detected