Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Lotmamordun ! (Registered 2021-05-11) You are not logged in 
CSDb User Forums


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

Registered: Dec 2001
Posts: 233
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: 1879
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: 4
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: 233
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: 233
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
psych858o/MSL/Elysiu..
hedning/G★P
iAN CooG/HVSC
Alakran_64
Mason/Unicess
Ranthalion75
j0x
tlr
Brataccas/HF
Guests online: 127
Top Demos
1 Edge of Disgrace  (9.6)
2 Comaland 100%  (9.6)
3 Uncensored  (9.6)
4 Coma Light 13  (9.6)
5 Unboxed  (9.6)
6 Lunatico  (9.5)
7 Memento Mori  (9.5)
8 Wonderland XII  (9.5)
9 Christmas Megademo  (9.5)
10 The Shores of Reflec..  (9.5)
Top onefile Demos
1 Copper Booze  (9.8)
2 Daah, Those Acid Pil..  (9.6)
3 To Norah  (9.5)
4 Lovecats  (9.5)
5 Dawnfall V1.1  (9.5)
6 Square Booze  (9.4)
7 Quadrants  (9.4)
8 Elite Code Mechanics  (9.4)
9 For Your Sprites Only  (9.4)
10 Remembrance  (9.4)
Top Groups
1 Booze Design  (9.4)
2 Censor Design  (9.3)
3 Oxyron  (9.3)
4 Fossil  (9.3)
5 PriorArt  (9.3)
Top Diskmag Editors
1 Jazzcat  (9.5)
2 Newscopy  (9.4)
3 Remix  (9.2)
4 A Life in Hell  (9.2)
5 Elwix  (9.1)

Home - Disclaimer
Copyright © No Name 2001-2021
Page generated in: 0.036 sec.