Now works for drives number >2, with cc65 patch
This commit is contained in:
parent
6593f91a93
commit
bd4c8230d5
|
@ -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);
|
||||
|
||||
|
|
BIN
sortdir.po
BIN
sortdir.po
Binary file not shown.
Loading…
Reference in New Issue