diff options
| author | Maxwell Beck <max@rastertail.net> | 2026-10-17 15:24:05 -0500 |
|---|---|---|
| committer | Maxwell Beck <max@rastertail.net> | 2026-10-17 15:25:40 -0500 |
| commit | ea220c0e4c54805b99aacd402479fb8d47b156a7 (patch) | |
| tree | 587376bd7158699f0d4c01511efad3bf22256ca4 /src/pico1541.c | |
| parent | f2ac7b405786f6bc047dfda7b45c139d194ba032 (diff) | |
feat: Support 40 track d64s
Diffstat (limited to 'src/pico1541.c')
| -rw-r--r-- | src/pico1541.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/pico1541.c b/src/pico1541.c index cb0473b..0cc5d61 100644 --- a/src/pico1541.c +++ b/src/pico1541.c @@ -37,7 +37,7 @@ static FILINFO disks[MAX_DISKS]; static uint8_t ram[2048]; static volatile uint8_t dos1541[16384]; -static volatile uint8_t disk[174848]; +static volatile uint8_t disk[196608]; static uint32_t ts; static cpu_t cpu; @@ -335,9 +335,7 @@ void drive_thread() { && disks[n_disks].fname[0] && n_disks < MAX_DISKS - 1 ) { - if (disks[n_disks].fsize == 174848) { - n_disks++; - } + n_disks++; res = f_findnext(&d, &disks[n_disks]); } f_closedir(&d); @@ -356,7 +354,7 @@ void drive_thread() { res = f_open(&file, im_path, FA_READ); if (!res) { - btr = 174848; + btr = f_size(&file); br = 0; while (btr > 0) { UINT brr; |
