WOZ: fix obscure crash bug. (Fixes #1126)

This commit is contained in:
tomcw 2022-08-30 21:43:20 +01:00
parent 09c09a1278
commit 3f40955306
1 changed files with 6 additions and 0 deletions

View File

@ -1450,6 +1450,12 @@ void Disk2InterfaceCard::DataShiftWriteWOZ(WORD pc, WORD addr, ULONG uExecutedCy
return;
}
if (!drive.m_spinning)
return;
if (!floppy.m_trackimagedata) // GH#1126
return;
#if LOG_DISK_WOZ_SHIFTWRITE
LOG_DISK("T$%02X, bitOffset=%04X: %02X (%d bits)\n", drive.m_phase/2, floppy.m_bitOffset, m_shiftReg, bitCellRemainder);
#endif