mirror of
https://github.com/AppleWin/AppleWin.git
synced 2024-12-23 00:30:17 +00:00
DiskII: data latch returns a rand() value when no disk is in drive. (Fixes #748)
This commit is contained in:
parent
a624d72ffd
commit
1e57ad7464
@ -872,7 +872,7 @@ void __stdcall Disk2InterfaceCard::ReadWrite(WORD pc, WORD addr, BYTE bWrite, BY
|
||||
|
||||
if (!pFloppy->m_trackimagedata)
|
||||
{
|
||||
m_floppyLatch = 0xFF;
|
||||
m_floppyLatch = rand() & 0xFF; // GH#748
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1056,7 +1056,7 @@ void __stdcall Disk2InterfaceCard::DataLatchReadWriteWOZ(WORD pc, WORD addr, BYT
|
||||
if (!floppy.m_trackimagedata)
|
||||
{
|
||||
_ASSERT(0); // Can't happen for WOZ - ReadTrack() should return an empty track
|
||||
m_floppyLatch = 0xFF;
|
||||
m_floppyLatch = rand() & 0xFF; // GH#748
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user