Added support for 42 tracked D64 images

According to https://github.com/excess-c64/v1541commander/blob/master/README.md D64s can be 42 tracks long.
This commit is contained in:
Stephen White 2021-01-01 12:32:17 +11:00
parent 1c6093d85e
commit e1f59e7262
2 changed files with 3 additions and 3 deletions

View file

@ -240,7 +240,7 @@ bool DiskImage::OpenD64(const FILINFO* fileInfo, unsigned char* diskImage, unsig
break;
default: // non-standard images, attempt to load anyway
last_track = 40;
last_track = MAX_TRACK_D64;
break;
}

View file

@ -28,9 +28,9 @@
/* D64 constants */
#define BLOCKSONDISK (17*21 + 7*19 + 6*18 + 5*17)
#define BLOCKSEXTRA (5*17)
#define BLOCKSEXTRA (5*17 + 2*17)
#define MAXBLOCKSONDISK (BLOCKSONDISK+BLOCKSEXTRA)
#define MAX_TRACK_D64 40
#define MAX_TRACK_D64 42
/* G64 constants (only needed for current VICE support */
#define G64_TRACK_MAXLEN 7928