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: 2839
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
Courage
Menace/Spaceballs
www.gb64.com
Martin Piper
Guests online: 75
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Bromance  (9.6)
10 Memento Mori  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Coders
1 Axis  (9.8)
2 Graham  (9.8)
3 Lft  (9.8)
4 Crossbow  (9.8)
5 HCL  (9.8)

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