| |
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.... |
| |
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 |
| |
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. |
| |
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 |
| |
Aomeba
Registered: Jul 2005 Posts: 22 |
Thank you all! Some good points already brought up, we hope they fix our issue. |
| |
Dano
Registered: Jul 2004 Posts: 234 |
If everything fails there are other loaders which might do their job, too like bitfire from bitbreaker? |
| |
HCL
Registered: Feb 2003 Posts: 728 |
..and there is a good loader from Booze Design also. Just as off topic as BitFire :P |
| |
Oswald
Registered: Apr 2002 Posts: 5094 |
easyer to fix the issue than change loader. imho. also check on real hw firt. |
| |
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.. |
| |
Adder
Registered: Mar 2016 Posts: 14 |
what can i do ??? |
| |
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. |
Previous - 1 | 2 | 3 - Next |