doj / dracopy

source code of the Commodore 64 programs DraCopy and DraBrowse
37 stars 12 forks source link

can't diskcopy to sd2iec (0 tracks) #7

Open venice1200 opened 1 year ago

venice1200 commented 1 year ago

Hi, at first happy new year and many thanks for this really cool piece of software.

This is more a question than an issue.

I am using a sd2iec and got the following message if I try to diskcopy to a newly created d64 image (using Key I).

dc13_sd2iec_no_tracks_small

Maybe diskcopy to sd2iec is not supported but the older version 1.0d was succesful writing (haven't tested the result)

My hardware is a MiSTer FPGA running the C64 Core with an IEC Adapter. diskcopy'ing from sd2iec is working well.

All the best!

just-doit commented 1 year ago

I'm getting the same error using my good old C128 with a 1570 floppy drive. I was trying to backup some old disks and was hoping using diskcopy would do it.

Edit: It seems the new version is not sd2iec-ready. It tries to get the number of tracks of the target device using this piece of code:

maxTrack(BYTE dt)
{
  if (IS_1541(dt))
    return 35;//42;
#if !defined(__PET__)
  if (dt == D1571)
    return 70;
  if (dt == D1581)
    return 80;
#endif
#if defined(SFD1001)
  if (dt == D1001)
    return 154;
#endif
  return 0;
}

As one can see, there's no "sd2iec". So it returns 0, which is != 35 of course.