Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > DKLoader reset issue
2021-03-18 11:40
Mr. Mouse

Registered: Dec 2001
Posts: 235
DKLoader reset issue

Hi all,

Working on another prod, and currently using dkloader to load parts.

Dekadence Loader

However, I noticed that the installation routine is disk-side specific, and to load files on another side I have to reinit the loader for that side. I didn't dive into the 1541 code yet, but I assume upon initialization the directory is read and prepared for easy loading, but one has to do this each time a new floppy is inserted.

I am pramatic, so I just called the installation routine again (in fresh form), but that doesn't work from within the program (it will cause a freeze). I assume that is because the code in the 1541 is still running.

Now, when just installing the loader, then reset it as indicated in the brief readme, followed by an rts to basic, I can in fact restart the installer when sys-ing to my code again.

What is returning to BASIC doing that resets the 1541 drive and I can again install the loader? Does it have something to do with $DD00?

Any hints on how to reset the system so I can do the reinstall of the loader on the fly?
2021-03-18 14:19
Krill

Registered: Apr 2002
Posts: 2855
No idea, really, but all this sounds like horrible workarounds for something that was never intended by the inventor.

Maybe you should look at other loaders that are better suited for your purposes.
2021-03-18 16:41
Faayd

Registered: Sep 2002
Posts: 8
The drive need a bit to reset, you have to buildin a delay before calling the dkloader-install again.

lda#$ff
jsr loader

//insert a delay

lda#$xx
jsr loader-install
2021-03-18 19:00
Mr. Mouse

Registered: Dec 2001
Posts: 235
Quote: The drive need a bit to reset, you have to buildin a delay before calling the dkloader-install again.

lda#$ff
jsr loader

//insert a delay

lda#$xx
jsr loader-install


OMG, that is it. I had actually tried that in the beginning, but it was too short a delay turns out. So I assumed that didn't fix it. But now I waited a little while longer and voila......

Thanks Faayd!! Kudos to you !
2021-03-18 22:44
Mr. Mouse

Registered: Dec 2001
Posts: 235
To add to the solution, waiting did help, but in my code it still didn't lead to the install routine working.

I found the culprit though, the installer went south because of my raster interrupt still being on, so disabling that temporarily at $d01a let the installer run normally.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
DeMOSic/HF^MS^BCC^LSD
Mike
dyme
MCM/ONSLAUGHT
lA-sTYLe/Quantum
Oswald/Resource
krissz
josepzin/Nautilus
Guests online: 76
Top Demos
1 Next Level  (9.7)
2 Mojo  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 No Bounds  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 It's More Fun to Com..  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 Tim  (9.7)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.037 sec.