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 > Formatting a disk from Basic
2005-12-15 11:36
Cruzer

Registered: Dec 2001
Posts: 1048
Formatting a disk from Basic

Anyone knows how to format a disk in basic, without using any cartridge-specific commands? IIRC it's something with "open".
 
... 17 posts hidden. Click here to view all posts....
 
2005-12-17 14:36
Graham
Account closed

Registered: Dec 2002
Posts: 990
They do? On small files the FC3 is actually faster than an AR6 due to less drive upload time and no full track access :P
2005-12-17 20:15
Oswald

Registered: Apr 2002
Posts: 5094
graham: guess what, @: is a commodore dos, and no AR only feature. hope it helped your mental health today, to call us stupid AR folks.
2005-12-17 21:34
Graham
Account closed

Registered: Dec 2002
Posts: 990
Oswald: Yes, @ is a DOS command but you know what it does? It first saves the file to disk and then deletes the old file.
2005-12-18 03:00
Wanderer
Account closed

Registered: Apr 2003
Posts: 478
Quote: Oswald: Yes, @ is a DOS command but you know what it does? It first saves the file to disk and then deletes the old file.

The @ command is a DOS command which Commodore implemented with the evil intent to corrupt source code files, thus causing agony and frustration for programmers worldwide. How many times have I lost code due to the Save and Replace operation? Too many.

2005-12-18 09:16
hollowman

Registered: Dec 2001
Posts: 474
Quote: The @ command is a DOS command which Commodore implemented with the evil intent to corrupt source code files, thus causing agony and frustration for programmers worldwide. How many times have I lost code due to the Save and Replace operation? Too many.



i stopped using it after losing sourcecode for the first time =)
2005-12-18 14:28
Graham
Account closed

Registered: Dec 2002
Posts: 990
Ofcourse some people like some risk in their lives, and the @ command is very good for that.
2005-12-18 16:59
MagerValp

Registered: Dec 2001
Posts: 1078
Yeah, I have an old source disk that's been nuked by @:... If you do, it's actually possible to recover all the files, since only the directory is corrupt. By following all the sector links with a recursive algorithm you can reconstruct file chains. My d64 library is probably a good starting place if you feel like writing a recovery utility:

http://www.paradroid.net/diskimage/
2005-12-18 17:11
Cruzer

Registered: Dec 2001
Posts: 1048
damn, just formatted the wrong disk by mistake. guess it's back to square one :)
2005-12-18 17:24
iopop

Registered: Dec 2001
Posts: 317
Quote: Yeah, I have an old source disk that's been nuked by @:... If you do, it's actually possible to recover all the files, since only the directory is corrupt. By following all the sector links with a recursive algorithm you can reconstruct file chains. My d64 library is probably a good starting place if you feel like writing a recovery utility:

http://www.paradroid.net/diskimage/


Broken disks is shit. For some reason, which I cant remember right now, I had to code such a tool at lcp this year..
2005-12-19 08:19
Wanderer
Account closed

Registered: Apr 2003
Posts: 478
Quote: Broken disks is shit. For some reason, which I cant remember right now, I had to code such a tool at lcp this year..

I know that the track/sectors follow a pattern (eg. 2/14 2/4, 2/13. 2/3). I've been able to resurrect a few programs with a sector editor.

It goes without saying that if you do lose a file due to scratching it, you can put a value of 130 in the directory to restore it. Everyone must know this already :) I remember being given disks (as a youth) with games and the first thing I'd do was check it for deleting files. I was able to restore a few games this way.

Back on topic though, save and replace sucks. If not for that, I'd still have my missing level for my Jailbreak game. *sigh*

I lost a few vital things that way...
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
Thierry
Raf/Vulture Design
morphfrog
Slator/Arsenic/Stone..
Guests online: 117
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 X-Mas Demo 2024  (9.5)
7 Dawnfall V1.1  (9.5)
8 Rainbow Connection  (9.5)
9 Onscreen 5k  (9.5)
10 Morph  (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 Musicians
1 Rob Hubbard  (9.7)
2 Mutetus  (9.7)
3 Jeroen Tel  (9.7)
4 Linus  (9.6)
5 Stinsen  (9.6)

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