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 > Drive code: 1541/81 code conversion.
2015-03-26 19:46
Flavioweb

Registered: Nov 2011
Posts: 463
Drive code: 1541/81 code conversion.

I have a simple question (for you experts).
This is a drivecode for 1541:
DRV_5BYTELOOP
    BVC DRV_5BYTELOOP                   ; Wait for data from the R/W head
    CLV
    LDA $1C01
    STA (BUFLO),Y
    INY
    CPY #$05                            ; Read 5 GCR bytes
    BNE DRV_5BYTELOOP
    RTS

How can i translate it to work on a 1581?
 
... 10 posts hidden. Click here to view all posts....
 
2015-03-27 14:23
cadaver

Registered: Feb 2002
Posts: 1160
Don't remember if I've asked this, but do you do anything special to speed up IFFL scanning on 1581/FD/HD? I never got around to that, as didn't use IFFL in an actual production so far, and only built the 1541 proof-of-concept routine.
2015-03-27 15:37
Flavioweb

Registered: Nov 2011
Posts: 463
I don't know how much time is needed by 81/Fd/HD to complete the seek process... maybe fast enough...
But i have no code to test now.
Maybe MagerValp tried something about this...
2015-03-27 19:13
Krill

Registered: Apr 2002
Posts: 2980
Is there a need to speed up scanning on 1581? Loading a random block, the entire track it is located on is read in a revolution or two, then the links can be walked in no time. Repeat for the rest of the file's tracks.

That said, one can always implement scanning on demand, such that a seek is only performed when loading.
2015-03-28 11:11
MagerValp

Registered: Dec 2001
Posts: 1078
Quote: Don't remember if I've asked this, but do you do anything special to speed up IFFL scanning on 1581/FD/HD? I never got around to that, as didn't use IFFL in an actual production so far, and only built the 1541 proof-of-concept routine.

On 1581 I buffer a track in the drive and then read all 40 t/s links from ram in one sweep. On CMD FD/HD the C64 requests sectors from the drive but only transfer the first two bytes. The 1581 version is a lot faster.
Previous - 1 | 2 - 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
Scrap/Genesis Project
Guests online: 71
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 Fullscreen Graphicians
1 Joe  (9.7)
2 Sulevi  (9.6)
3 The Sarge  (9.6)
4 Veto  (9.6)
5 Facet  (9.6)

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