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 > Krill loader not working
2014-10-19 20:28
Chesoner

Registered: Apr 2013
Posts: 29
Krill loader not working

Hi There,

We are still strungling with the Krill loader, I have to say that we have progressed a lot but we get the following problem :

If we use the following command :

Make prg INSTALL=4000 RESIDENT=9000 zp=10

The install is working good at 4000 but the loader is still located at 0400. if we forced it to load at 9000 it ain't working.

Are we doing something wrong here ?
 
... 55 posts hidden. Click here to view all posts....
 
2014-12-07 10:33
iAN CooG

Registered: May 2002
Posts: 3194
if you attach a prg, true drive emulation is not active and prolly virtual device traps are on. always use d64
2014-12-07 10:51
Chesoner

Registered: Apr 2013
Posts: 29
If i don't put all the files on a d64 :

I have a file which will be loaded put on a d64. I then have my sublime/kickassembler with coding. I start the compiled coding (1st part) from kickassembler so winvice is started. I have a keyboard check so i can first put drive emulation to on and attach the appropiate d64 file (2nd part) with attach drive. I then press the keyboard so the coding is executed further and the file should be loaded from the d64 disk.

But after the decrucnch the part starts and immediately freezes.

Now if I put the compiled coding (1st part) also to the d64 so I don't have to attach anything then winvice will start the first part, the second part is loaded and decrunched correctly so it starts all good but it won't run on a real C64.
2014-12-07 11:00
chatGPZ

Registered: Dec 2001
Posts: 11386
so does it load and decrunch on the real C64 too? if yes, then the problem isnt the loader at all
2014-12-07 11:09
Burglar

Registered: Dec 2004
Posts: 1101
chesoner, sounds like you were thinking that all required files magically would appear on the correct d64.

You just need to build the d64 correctly (using the vice cmdline tool c1541.exe for example).

also, save your vice settings so you always have true drive emu on, manually changing settings every time will bore you to death ;)
and do *not* use multiple attached devices if you use krill's default 2bitatn loader or it will not work at all. just 1 1541 attached, no more no less.
2014-12-07 11:34
Chesoner

Registered: Apr 2013
Posts: 29
Quoting Groepaz
so does it load and decrunch on the real C64 too? if yes, then the problem isnt the loader at all


It is only working in winvice 2.x, not on a real c64.

@burglar: The to be loaded file in on a d64 which is attached with the drive in winvice so all files needed is on the d64 file, i think.

Maybe we are doing something real stupid but we can't figure out what.
2014-12-07 13:41
chatGPZ

Registered: Dec 2001
Posts: 11386
Quote:
It is only working in winvice 2.x, not on a real c64.

it would be much easier to help if you said WHAT EXACTLY is working and what is not. and ALWAYS put ALL files on disk/d64. did you try strippig it down to a simple test case that only initializes the drive code and then loads something? does that expose the same problems?
2014-12-07 15:21
WVL

Registered: Mar 2002
Posts: 902
Aren't you just starting the first part and trying to initialize the loader without true drive emu? In that case the loader doesn't install itself in the drive and it won't work when you want to load later on. It doesnt help turning on true-drive emulation afterwards..

- put all files on a d64
- make sure you have true-drive emulation
- start winvice with the d64
2014-12-07 15:33
Chesoner

Registered: Apr 2013
Posts: 29
First testing we did :
We only had the part (file "01") to be loaded on a d64 file. we started the first part compiling with kickassembler so the first part is started in winvice and had a keyboard check in the beginning so the coding was not executed automaically further. we first put drive emulation to on and attached the d64 file with only the part what should be loaded ("01") and then press space (keyboard check) We did not get it to work this way because the loaded part freezes after decrunching/starting.

The second we did :
We now put both files to the d64 file. so the file "01" which should be loaded and the starting part "intro" are now on the d64 disk. if we run the d64 disk it is working fine in winvice 2.x but not on a real c64 because it again freezes after decrunching/starting.

I hope this will explain the problem we have a bit more.
2014-12-07 16:51
Oswald

Registered: Apr 2002
Posts: 5094
you have to know that loaders like this upload & execute code in the drive. true drive emulation have to be enabled before this step.

btw dont attach d64 and start true drive emulation manually. common practice is to set up true drive emulation to permanent & attach d64 in commandline.

the problem is too complex to get an answer to it on a forum like this. you have to try to pinpoint where & when the bug happens. before or after the file was loaded. before or after you have jumped on code in the new file. has the file been loaded correctly, etc etc. We cant do this job for you from here.
2014-12-07 23:14
Flavioweb

Registered: Nov 2011
Posts: 463
I never used Krill's loader, so i can't know for sure, but seems like if loader checks for compatibilty with actual drive, and if it found a loader-compatible device, then load drive code into drive ram, otherwise load file using some "non turbo" routines...
If it is, i think there are some problems during drive code compilation in this specific case, instead a real krill's code bug...
Very very imho, eh...
Previous - 1 | 2 | 3 | 4 | 5 | 6 | 7 - 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
MWR/Visdom
Guests online: 105
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 Edge of Disgrace  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 No Listen  (9.6)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Dawnfall V1.1  (9.5)
7 Rainbow Connection  (9.5)
8 Onscreen 5k  (9.5)
9 Morph  (9.5)
10 Libertongo  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Triad  (9.3)
5 Censor Design  (9.3)
Top Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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