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


Forums > CSDb Entries > Release id #118713 : Krill's Loader, repository version 146
2013-05-07 11:44
Krill

Registered: Apr 2002
Posts: 2969
Release id #118713 : Krill's Loader, repository version 146

Please post feature requests, bug reports, questions etc. here.

Highest priority on my to-do list are speed enhancements, anything else you'd like for your next stunning demo?
 
... 50 posts hidden. Click here to view all posts....
 
2013-05-11 14:35
algorithm

Registered: May 2002
Posts: 705
Cruzer, I would call the jsr initialise loader routine first line in the code before any SEI, setting interrupts etc. (I assume you are doing this?)
2013-05-11 14:45
chatGPZ

Registered: Dec 2001
Posts: 11352
yeah dont init loader when your part (music irq, whatever) is running. that gave me exactly the same errors =D
2013-05-11 20:13
Cruzer

Registered: Dec 2001
Posts: 1048
Already tried sei, cli, turning off all interrupts before calling install, not turning them off, etc., with the same result. So I figured something had to be wrong with install-c64.prg. While browsing around in the source files I noticed some of them were write protected, so I did a recursive chmod 777, and after compiling again, I was able to jsr install without errors. Woo-yay! :D
2013-05-12 00:26
Radiant

Registered: Sep 2004
Posts: 639
Yeah, lots of write protected files in the latest version. Makes it semi-broken I'd say.
2013-05-12 12:24
Cruzer

Registered: Dec 2001
Posts: 1048
And I got it to load a file with an interrupt running \o/
Sure hope I have grown from this experience. :)
Guess I still have a lot to learn though, e.g. how to load a file without the drive having to access the dir each time, and how to integrate it with packers.
2013-05-12 12:42
algorithm

Registered: May 2002
Posts: 705
I think krills loader caches the data on the drive and by default it points to the next file on the disk for preperation.

Once the decompressor option is enabled in the config.inc file and the loader is compiled, there should be a loadersymbols.inc file generated which will give you the offset jump table for use in loading compressed files.

Using exomizer for example, you can pack a datafile using something like exomizer mem -f testdata.prg -ocompdata
2013-05-13 07:17
Oswald

Registered: Apr 2002
Posts: 5086
"I think krills loader caches the data on the drive and by default it points to the next file on the disk for preperation."


yeah, thats how it worked last time I've used it. the loader positions the head on the next file in the directory structure after finished with the previous, so place files in loading order in the disk.
2013-05-13 10:51
Luca

Registered: Apr 2002
Posts: 178
Thank you Krill for your help, compiling it has been actually easier than I imagined :)
2013-05-13 13:12
Krill

Registered: Apr 2002
Posts: 2969
Quote: "I think krills loader caches the data on the drive and by default it points to the next file on the disk for preperation."


yeah, thats how it worked last time I've used it. the loader positions the head on the next file in the directory structure after finished with the previous, so place files in loading order in the disk.


There is a drive-side cache for the files' starting track/sector. This is a sliding window on the directory, holding about 30 file entries on 1541, with 4 bytes per entry (2 bytes track/sector, 2 bytes filename hash).

Normally the directory should only be accessed once, unless you have more files than can be held in the cache.

If the directory is larger than what the cache can hold, and a file cannot be found in the cache, the directory track will be read again, trying to find that file. This will likely leave another chunk of the directory in the cache.

Now, if you have more files than the cache can hold, and you jump wildly about the directory, the loader will be forced to revisit the directory track here and there.

If it jumps back to the directory track despite all files fitting into the cache, it's a bug on my side.

Does the problem still exist?
2013-05-13 13:16
Krill

Registered: Apr 2002
Posts: 2969
Quoting Cruzer
While browsing around in the source files I noticed some of them were write protected, so I did a recursive chmod 777, and after compiling again, I was able to jsr install without errors. Woo-yay! :D
Quoting Cruzer
Yeah, lots of write protected files in the latest version. Makes it semi-broken I'd say.
Okay, this is interesting. Of course i checked if the zip i uploaded builds fine after download, but i didn't check the prg target, nor did i suspect, or ever hear, that read-only source files would silently produce broken binaries.
Will investigate, but can anybody tell me more about this?
Previous - 1 | 2 | 3 | 4 | 5 | 6 - Next
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
Alakran_64
Guests online: 80
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 Uncensored  (9.6)
7 Wonderland XIV  (9.6)
8 Comaland 100%  (9.6)
9 What Is The Matrix 2  (9.6)
10 No Bounds  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Censor Design  (9.3)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Mikael  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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