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..
 
... 13 posts hidden. Click here to view all posts....
 
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
Previous - 1 | 2 | 3 - 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
Mike
Walt/Bonzai
MCM/ONSLAUGHT
iAN CooG/HVSC
MWR/Visdom
Korodny
Copyfault/Extend^tsn..
Scrap/Genesis Project
McMeatLoaf
katon/Lepsi De
t0m3000/hf^boom!^ibx
Chesser/Blazon
Magic/Nah-Kolor
saimo/RETREAM
Steffan/BOOM!
Andy/AEG
Freeze/Blazon
4gentE/ΤRIΛD
Guests online: 119
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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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