Now works for drives number >2, with cc65 patch

This commit is contained in:
Bobbi Webber-Manners 2020-06-02 21:16:35 -04:00
parent 6593f91a93
commit bd4c8230d5
2 changed files with 1 additions and 1 deletions

View File

@ -638,7 +638,7 @@ void firstblk(char *dirname, uchar *device, uint *block) {
drive = ((*lastdev & 0x80) >> 7) + ((*lastdev & 0x03) << 1) + 1;
printf("[Slot %u, Drive %u]\n", slot, drive);
*device = slot + (drive - 1) * 8;
dio_hdl = dio_open(*device); // TODO should dio_close on exit
dio_hdl = dio_open(*device);
hdr = (struct pd_dirhdr*)(buf + PTRSZ);

Binary file not shown.