| |
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". |
|
| |
Zyron
Registered: Jan 2002 Posts: 2381 |
open15,8,15
print#15,"n:name"
close15
or something like that |
| |
JackAsser
Registered: Jun 2002 Posts: 2014 |
OPEN 1,8,15,"N:DISKNAME,ID":CLOSE 1
(IIRC) |
| |
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. |
| |
Cruzer
Registered: Dec 2001 Posts: 1048 |
That's like the quickest answer ever! Thanks! |
| |
Clarence
Registered: Mar 2004 Posts: 121 |
I'am suspecting some killer CML-Sports stuff coming up soon...? ;) |
| |
Graham Account closed
Registered: Dec 2002 Posts: 990 |
No chance, he just formatted the disk. |
| |
Scout
Registered: Dec 2002 Posts: 1570 |
Quote: No chance, he just formatted the disk.
:D |
| |
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)
|
| |
Zyron
Registered: Jan 2002 Posts: 2381 |
I've always used save "@:name" & never had any problems with it. |
| |
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 |