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".
2005-12-15 11:44
Zyron

Registered: Jan 2002
Posts: 2381
open15,8,15
print#15,"n:name"
close15

or something like that
2005-12-15 11:44
JackAsser

Registered: Jun 2002
Posts: 2014
OPEN 1,8,15,"N:DISKNAME,ID":CLOSE 1

(IIRC)
2005-12-15 11:49
Zyron

Registered: Jan 2002
Posts: 2381
What I suggested only makes a fast format since I forgot ,id
Anyway, the way JackAsser suggested seems better.
2005-12-15 11:56
Cruzer

Registered: Dec 2001
Posts: 1048
That's like the quickest answer ever! Thanks!
2005-12-15 12:19
Clarence

Registered: Mar 2004
Posts: 121
I'am suspecting some killer CML-Sports stuff coming up soon...? ;)
2005-12-15 13:08
Graham
Account closed

Registered: Dec 2002
Posts: 990
No chance, he just formatted the disk.
2005-12-15 13:56
Scout

Registered: Dec 2002
Posts: 1570
Quote: No chance, he just formatted the disk.

:D
2005-12-15 23:11
Wanderer
Account closed

Registered: Apr 2003
Posts: 478
Quote: :D

As mentioned, without the ",id" it will only erase the contents of the directory (track 18). The other tracks will not be formatted.

I've had many bad experiences with the emulator lately, with files corrupting. I religiously do a validation after saving code over and over and I also avoid "save and replace" (eg. save "@0:blah,8"). I've always been told save and replace could cause corruption and you know what, it does!! Despite making backups of source code for my last two demos, the original source files were garbled.

open1,8,15,"v0":close1 will validate a disk
open1,8,15,"i0":close 1 will initialize a disk

The zero is optional and dates back from the time where drives were numbered 0 and 1 (like PET drives)

2005-12-15 23:13
Zyron

Registered: Jan 2002
Posts: 2381
I've always used save "@:name" & never had any problems with it.
2005-12-16 02:30
Nafcom

Registered: Apr 2002
Posts: 588
Quote: I've always used save "@:name" & never had any problems with it.

But I experience the same as Wanderer, but only very rarely.
 
... 17 posts hidden. Click here to view all posts....
 
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
WVL/Xenon
MWR/Visdom
The Human Co../Maste..
kbs/Pht/Lxt
Freeze/Blazon
BYB/Hokuto Force
Brittle/Dentifrice^(?)
iAN CooG/HVSC
rambo/Therapy/ Resou..
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 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 Logo Graphicians
1 t0m3000  (10)
2 Sander  (9.8)
3 Mermaid  (9.5)
4 Facet  (9.4)
5 Shine  (9.4)

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