pdaehne / sd2iec

Clone of the offical sd2iec repository at https://www.sd2iec.de that contains the changes made by Lars Wadefalk et al. to get it running on Arduino Megas (see https://github.com/Larswad/sd2iec_mega2560)
GNU General Public License v2.0
1 stars 1 forks source link

How to add another fastloader #1

Open SuperNeotendo opened 1 year ago

SuperNeotendo commented 1 year ago

thank you for the sd2iec on mega, just awesome and i built a internal version for my c64c.

i have an fc1/fc+ and an super rare internal final cartridge (maybe pre FC1/FC+). as you know, all FC fastloaders below FC3 are not supported.

i was able to grab the drive code from a real 1541 i think and my question is, how it is possible to add this code to sd2iec simulation?

kind regards

pdaehne commented 1 year ago

Well, the credits go to Ingo Korb, the maintainer of the official sd2iec repository (https://www.sd2iec.de/), and Lars Wadefalk, who actually did the port to Arduino Mega (https://github.com/Larswad/sd2iec_mega2560).

To be honest, I do not know how to add another fastloader. Maybe have a look at the FC3 fastloader (sd2iec/src/fl-fc3exos.c). When the C64 uploads the fastloader code to the sd2iec (via the "M-W" command), the sd2iec checks the crc of the code against a list of known fastloaders and calls the corresponding fastloader code (see sd2iec/src/doscmd.c).

I think you should try to get in contact with @ikorb for more help. He can also be found under the user name "Unseen" in http://forum64.de.

SuperNeotendo commented 1 year ago

thank you very much for the information, i wrote ingo korb an email, will see what he is saying. now i know how sd2iec is knowing which fastloader code he needs to simulate, makes sense now if its using crc. maybe i will ask lars too for help.

kind regards