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-05 15:57
Krill

Registered: Apr 2002
Posts: 2980
Okay, obfuscation, i see. But as long no stepping happens by simply turning on and off the motor, no problem. Then no code is required to handle that, as doynax feared.
2014-12-05 16:06
doynax
Account closed

Registered: Oct 2004
Posts: 212
Quoting Krill
No, i never noticed. The motor is turned off long after the stepper has settled, and switching off the current coil presumably would not move the head.
That's comforting to hear. Probably means that there's enough inertia not to have to care much about it, especially not in demos.

Quoting Krill
Why track 35? Because you might end up in the woods (track 35.5) on a standard-format disk and wouldn't find your way out?
Precisely. A loader which reads the tracks of the sectors flying by can adjust to unexpected movements as long as it stays in the formatted area, but drifting beyond the edge of the map would require harder (i.e. more RAM-consuming) to recover from.

Actually my old D64 loader couldn't do this but I imagine you'd need to be decoding the sector headers anyway for out-of-order reading to work.
2014-12-06 18:24
Chesoner

Registered: Apr 2013
Posts: 29
After we get the loader working in winvice 2.4 we tested it in winvice 2.2. it is also working good in winvice 2.2 so we tested it out on a real c64 and after the part is loaded and decrunched the part freezes.

What is the difference between winvice 2.x and a real c64 ?
2014-12-06 19:33
Burglar

Registered: Dec 2004
Posts: 1101
what exactly did you have to do to get it working?
2014-12-07 10:10
Chesoner

Registered: Apr 2013
Posts: 29
Quote: what exactly did you have to do to get it working?

I got it working if I put all the files on a .d64 file and start the .d64 file.

If I compile the coding with kickassembler and start it with the .d64 file attached we have the same problem the the part what is loaded freezes after decrunching.
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.
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
Didi/Laxity
Freeze/Blazon
Guests online: 136
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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.7)
4 Acidchild  (9.7)
5 Cash  (9.6)

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