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 > Disc command weirdness
2016-03-28 15:37
oziphantom

Registered: Oct 2014
Posts: 490
Disc command weirdness

So
open 2,8,2,"#2"
open 15,8,15,"U1 2 0 2 0"

works
open 2,8,2
print#2,"#2"
open 15,8,15,"U1 2 0 2 0"

doesn't
open 2,8,2,"#2"
open 15,8,15
print#15,"U1 2 0 2 0"

does

And the asm version of the BASIC operates the same as above.
Some quirk I'm missing to send the #2 over print/ffd2 is there something else I need to do ?
2016-03-28 16:38
Flavioweb

Registered: Nov 2011
Posts: 463
My guess:
PRINT# adds a new line after the command, OPEN don't?
What happen with "PRINT#2,"#2";"?
2016-03-28 19:38
soci

Registered: Sep 2003
Posts: 480
Buffers need to be _opened_ so that they get a channel assigned. You can't just open a channel and send stuff to it like "#2" and expect that now this buffer will be assigned to it.

If you open the buffer properly (as in the first variant) then you can use the channel to transfer data to/from it.

Don't confuse it with the command channel's behaviour, that's special.
2016-03-29 08:21
oziphantom

Registered: Oct 2014
Posts: 490
Ah ok so sending data post open is not the same as sending the filename during open. Thanks for clearing that up.

I guess once the channel is open, and it is used to pull data into the drives memory, it doesn't matter that the computer "forgets* the channel. I can just send more "U1 2 0 X X" to the drive, to make it pump more sectors into its memory?
2016-03-29 19:17
lA-sTYLe

Registered: Sep 2003
Posts: 63
I've been testing nearly the same with cmd drives but always needed to close the command channel beforet sending another command.

which reminds me a question

does there exist a burstloader that speeds up loading single sectors of a track for cmd drives, except using the Standart DOS commands?
2016-03-30 04:20
oziphantom

Registered: Oct 2014
Posts: 490
with a 1571 you don't need to close the Command Channel, you do need to do a JSR FFCC which is CLRLIN, just flushes stuff, and if you are sending via FFD2 you need to put a $0D carriage return on the end of the string.

Does the CMD support the U0 Burst commands? "U0"0,Track,Sector,num sectors,next sector Burst Command could do what you want. note that the params should be in binary not petascii like the other drive commands, not sure if you will be able to use a normal DOS load command to get the data though.
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
Dano/Padua
E$G/HF ⭐ 7
The Human Co../Maste..
t0m3000/hf^boom!^ibx
Flashback
Shake/Role
Hoild/Ultimate Newco..
Chesser/Blazon
El Gato
Steffan/BOOM!
Guests online: 135
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 Webmasters
1 Slaygon  (9.6)
2 Perff  (9.6)
3 Sabbi  (9.5)
4 Morpheus  (9.4)
5 CreaMD  (9.1)

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