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 > 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".
 
... 20 posts hidden. Click here to view all posts....
 
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
MWR/Visdom
SLC
Exploding Fi../Techn..
CA$H/TRiAD
Guests online: 101
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 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.035 sec.