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 > Dekadence loader & disc side change (1541u)
2016-07-20 17:30
Aomeba

Registered: Jul 2005
Posts: 22
Dekadence loader & disc side change (1541u)

Hey everyone,

Siesta is working on a new demo for X2016, and the side A is 100% finished except that we're having trouble mounting side B with 1541u. Adder, our coder, is using the Dekadence Loader

What's the common protocol for these automatic disc side detects with 1541u?

We've been out for 20 years so please teach us..
2016-07-20 17:35
chatGPZ

Registered: Dec 2001
Posts: 11386
all common methods should work, if not - contact gideon so he can fix the damn thing =)

a common fault however is to check the (real) disk id for disk changes - that will fail if the ID in the directory is the same on both sides (because emulators, and 1541u, reuse that id for the disk-id when using d64s)
2016-07-20 17:42
Adder

Registered: Mar 2016
Posts: 14
yes we are doing a demo to release at x-2016.
we use for side ‚a‘ a loader called Dekadence from SounDemoN.
the problem that the program has is the flip disc via *mount* on ultimate 2.
if we mount a disc ..after that the loader isn’t useable.
so a reset of floppy is needed for using the init-routine of Dekadence again .. because we can only one time install the Dekadenz.

what can we do
2016-07-20 17:52
Adder

Registered: Mar 2016
Posts: 14
sorry .. but i'm no 1541 coder!


is there a possibility to 'jsr reset floppy'?
2016-07-20 18:08
Burglar

Registered: Dec 2004
Posts: 1101
soundemon is around, is he not? I'm sure he'll help out here
2016-07-20 18:08
Adder

Registered: Mar 2016
Posts: 14
I can prove that it is not on the id's.

when i try to mount floppy 2 times it doesn't make a difference.
2016-07-20 18:16
Burglar

Registered: Dec 2004
Posts: 1101
one big tip, make sure side 2 also has a bootfile, so the demo can be started there as well in case the flipdisk fails.
2016-07-20 18:18
chatGPZ

Registered: Dec 2001
Posts: 11386
also keep in mind that disk changing via the menu _IS_ prone to errors and will randomly fail (or not so randomly if you are for example using some timer-irq driven stuff in the turn disk part).

first of all make sure it works on a real drive - if it then doesnt work on 1541u, most likely its not your fault.
2016-07-20 18:39
Adder

Registered: Mar 2016
Posts: 14
@Burglar

we have a .d64 with running file

@Groepaz
i believe that the demo runs on real disk..
there is a flip disc and the loader doesn't changes
2016-07-20 18:59
Adder

Registered: Mar 2016
Posts: 14
@Burglar.. we played with the idea to make side 2 runnable.. it will be so
Thanks for that info .. may it helps at the competition too
2016-07-20 19:09
Mixer

Registered: Apr 2008
Posts: 452
Afaik the dkd loader does not have a flip disk detection. It does not have special command for reloading the directory, but there is a reset command, if I recall it correctly.

Loader was used for example in Vicious Sid demo. The turn disk part asks to flip disk and press space and then it starts from side 2.
2016-07-20 19:37
Adder

Registered: Mar 2016
Posts: 14
hi @Mixer no problem with detection.. we have the "Reset" lda#$ff , jsr $0100

after that the loader didn't come around with reading a file or init loader.

there must be a way for reseting the 1541
2016-07-20 19:47
Mixer

Registered: Apr 2008
Posts: 452
Looked at the dkdloader code and the "reset", aka. the lda #$ff or any number with 8th bit up in accu while calling the loader should cause the loader to call the 1541 hardware reset vector JMP ($FFFC), which should reset the 1541 to its basic state. So, after that one should be able to do kernel 1541 stuff as usual or reupload the loader.

Whether it works with 1541u or emulation is another matter.
2016-07-20 19:59
chatGPZ

Registered: Dec 2001
Posts: 11386
one thing to consider at this point: you must wait for about 1 or 2 seconds after resetting the drive - if you try to transfer anything during that period the kernal IEC routines will lock up
2016-07-21 04:35
Aomeba

Registered: Jul 2005
Posts: 22
Thank you all! Some good points already brought up, we hope they fix our issue.
2016-07-21 07:31
Dano

Registered: Jul 2004
Posts: 234
If everything fails there are other loaders which might do their job, too like bitfire from bitbreaker?
2016-07-21 10:40
HCL

Registered: Feb 2003
Posts: 728
..and there is a good loader from Booze Design also. Just as off topic as BitFire :P
2016-07-21 10:47
Oswald

Registered: Apr 2002
Posts: 5094
easyer to fix the issue than change loader. imho. also check on real hw firt.
2016-07-21 11:30
Adder

Registered: Mar 2016
Posts: 14
first thank you all..

i tried to wait after reset for 5 seconds .. after that call the init-routine,
and the *ultimate floppy* is shining for a short time..
so it seems that the loader is reinitialized..

after that.. try to load (after waiting some seconds) but now the load function hangs..
2016-07-21 13:23
Adder

Registered: Mar 2016
Posts: 14
what can i do ???
2016-07-21 13:54
Mixer

Registered: Apr 2008
Posts: 452
First thing the loader in 1541 side does is that it reads the directory, I assume that the U1541 flashes due to that. The files are again numbered according to the file order in dir, and loader can be called with lda nr jsr loader.

So, why would it stop working?
a) something messing with dd00 at c-64 side
b) wrong filename/number
c) "disk error"
d) init has failed for unknown reason.
e) 1541u

Vice monitor can be used to debug the drive too.
2016-07-21 14:07
Adder

Registered: Mar 2016
Posts: 14
thanx @Mixer

a) something messing with dd00 at c-64 side -- not in test version
b) wrong filename/number -- not in test version
c) "disk error" -- not with before cleaned .d64
d) init has failed for unknown reason. -- may be
e) 1541u -- i'm nearly sure
2016-07-21 14:13
Adder

Registered: Mar 2016
Posts: 14
1541 ultimate .. i mounted before init the loader ( lda#2 jsr$3800)
2016-07-21 14:13
Adder

Registered: Mar 2016
Posts: 14
sorry

1541 ultimate .. i mounted before init the loader ( lda#1 jsr$3800)
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
Airwolf/F4CG
Mike
MWR/Visdom
Case/Padua
Unlock/Padua/Albion
WVL/Xenon
Trap/Bonzai
Steffan/BOOM!
REBEL 1/HF
Freeze/Blazon
sln.pixelrat
Guests online: 129
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 Layers  (9.6)
2 No Listen  (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 Graphicians
1 Mirage  (9.8)
2 Archmage  (9.7)
3 Pal  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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