]> Shamusworld >> Repos - apple2/blobdiff - src/floppydrive.cpp
Added known issues file, small fix for booting from running Apple.
[apple2] / src / floppydrive.cpp
index 92917191dd10e16c5bb9a57c3a96fae444f3e437..5df3964313e0fe21a9b1646eebe1d8111607c9bd 100644 (file)
@@ -948,7 +948,7 @@ void FloppyDrive::SetReadWriteSwitch(uint8_t state)
 uint8_t FloppyDrive::DataRegister(void)
 {
        // Sanity check
-       if (diskType[activeDrive] != DT_EMPTY)
+       if (diskImageReady && (diskType[activeDrive] != DT_EMPTY))
        {
                WOZ2 & woz = *((WOZ2 *)disk[activeDrive]);
                uint8_t tIdx = woz.tmap[headPos[activeDrive]];