Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user eightbitswide ! (Registered 2024-12-24) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > drivecoding
2004-03-11 15:01
Oswald

Registered: Apr 2002
Posts: 5094
drivecoding

Hi people!

I have looked for info on the topic with google, but I think there is very little info on this out there. Anyone can post some useful links?

other questions:

- anyone can give me a sourcecode which would upload any kind of prg to the drive, and execute it ?
- why atn cant be used to send bits ?
- where is the entry point in the drive rom of the soft reset routine?
 
... 11 posts hidden. Click here to view all posts....
 
2004-03-12 14:55
Cybernator

Registered: Jun 2002
Posts: 154
Quote: it doesnt quite looks so in krill's source, he reads ATN IN without taking care of the state of DATA and CLK, but there is this fiddling with ATN OUT, even he cant explain why its there...

You misunderstood Graham's point. When you want to read ATN IN, you must set ATN OUT to 0. When you want to read DATA IN, you must set DATA OUT to 0, etc...
2004-03-12 15:25
Hoogo

Registered: Jun 2002
Posts: 105
Quote: it doesnt quite looks so in krill's source, he reads ATN IN without taking care of the state of DATA and CLK, but there is this fiddling with ATN OUT, even he cant explain why its there...

That ATN-Out in the floppy is not simply connected to the ATN-line like all the other in/outs... Damn, why can't I remember all the special things about it??

Krill's source looks like that to me: He wants to transfer bytes from Floppy to C64. The C64 alters ATN to ask for a new pair of bits. ATN-Out in the drive is set according to the state of the ATN-Line, so the DATA-Line works again and he can transfer without waiting for ATN 0.
2004-03-12 16:26
cadaver

Registered: Feb 2002
Posts: 1160
Beware the wrath of NTSC power users if you go with using the ATN-line :)
2004-03-15 06:12
raven
Account closed

Registered: Jan 2002
Posts: 137
Ok.. lets put some things in order.
Been awhile since i coded my loader but this is what i
remember:

First of all, this waits for ATN HI, not LO (as stated in
the source).

bit$1800
bpl *-3

Bit #7 is set to 1 when ATN signal on the bus is present.

Now, when a device gets the ATN signal from the 64 the hardware automatically responds to let the 64 know
it got the signal.
The response comes either in DATA or CLK (cant remember exactly which one).

In order to disable the auto-response, bit #4 of $1800
must be set to 1.
This is a must! right after the 64 sends an ATN HI signal,
you must set bit #4 to 1 or you'll get data corrupted.

Hope this helps :)


2004-03-17 20:35
anix
Account closed

Registered: Feb 2004
Posts: 35
maybe a bit off topic but i thought it might be appropriate...

anyone ever notice that digital world / samar makes the led on 1571 (others?) fade in and out while the demo runs? i thought it was neat :)
2004-03-18 12:08
Oswald

Registered: Apr 2002
Posts: 5094
raven: yep now krill's protocol is clear to me :)

anix: flashing the led is easy, it worx on 1541's too, altho you can just turn on/off the led with 1 bit, but if you -with changing periods of time- turn it on off fast, you can make it look brighter, darker.
2004-03-18 14:23
anix
Account closed

Registered: Feb 2004
Posts: 35
oswald: i see, like pulse width modulation.
2004-03-28 01:50
anix
Account closed

Registered: Feb 2004
Posts: 35
can anyone explain how the action/retro replay ramloader works? or perhaps a url to the AR sourcecodes to read...
2004-04-01 22:43
Krill

Registered: Apr 2002
Posts: 2980
the ar loader fetches all sectors of a track and sends them over to the c64, into the ar's extra ram, undecoded (afair). only there, they are decoded and copied to the correct locations in the c64's mem. the most impressive thing with that loader is the transfer protocol, syncing by adding a cycle or not each 4 transferred bytes. but what exactly do you want to know with that loader? i once re-coded it btw to work without any extra memory, still with a track buffer on the c64 side. but there is a way to get around wasting $1500 bytes of memory. though, haven't applied it to that ar-like loader. i used such a technique in my newer irq loaders, check fixup#$00 for sources. fixup#$01 will be released when i find some more spare time for boring tasks like copypasting better routines to exisiting loaders ;)
2004-05-15 02:12
Count Zero

Registered: Jan 2003
Posts: 1932
Krill explained it nicely.
The CRC decoding is indeed done on the c64 side. Still, the drivecode is pretty huge and even a single block file requires reading and transfer of a whole track ..

l8r

Count Zero/CyberpunX/SCS*TRC
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
Alakran_64
Doc Snyder/ONS
MWR/Visdom
Soya/Fairlight
Durandal
csabanw
Mojzesh/TGR🇬🇧
Warlord
Magic/Nah-Kolor
No-XS
iAN CooG/HVSC
Guests online: 109
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Comaland 100%  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 X-Mas Demo 2024  (9.5)
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 Censor Design  (9.3)
5 Triad  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

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