mirror of
https://github.com/AppleWin/AppleWin.git
synced 2025-08-12 13:25:24 +00:00
#201 Fix fence post logic bug in ProDOS drive dection
This commit is contained in:
@@ -646,7 +646,7 @@ void FrameDrawDiskStatus( HDC passdc )
|
||||
int ProDOStrack = *MemGetMainPtr( 0xC356 ); // LC1 $D356
|
||||
int ProDOSsector = *MemGetMainPtr( 0xC357 ); // LC1 $D357
|
||||
|
||||
if ((ProDOSdrive >= 0 && ProDOSdrive < 2)
|
||||
if ((ProDOSdrive >= 1 && ProDOSdrive <= 2)
|
||||
&& (ProDOStrack >= 0 && ProDOStrack < 40)
|
||||
&& (ProDOSsector >= 0 && ProDOSsector < 16))
|
||||
{
|
||||
|
Reference in New Issue
Block a user