formatting disks

Discuss anything related to the VIC
Post Reply
JoshuaHorn
Vic 20 Drifter
Posts: 37
Joined: Fri Feb 06, 2009 11:03 am

formatting disks

Post by JoshuaHorn »

How do you format disks on the vic?
Joshua Horn
--
"Just because YOU think it's old, does not me it's useless to ME!" -- Joshua Horn
gklinger
Vic 20 Elite
Posts: 2051
Joined: Tue Oct 03, 2006 1:39 am

Post by gklinger »

Try this: OPEN1,8,15,
Last edited by gklinger on Fri Feb 13, 2009 5:03 am, edited 1 time in total.
In the end it will be as if nothing ever happened.
Leeeeee
soldering master
Posts: 396
Joined: Fri Apr 23, 2004 8:14 am

Post by Leeeeee »

Close, one to many "s ..

Code: Select all

OPEN 1,8,15,"N:diskname,ID": CLOSE 1
.. to clear an already formatted disk or..

Code: Select all

OPEN 1,8,15,"I":CLOSE 1
.. to initialise an unformatted disk.

You don't need to specify the drive number on single drive units.

Lee.
gklinger
Vic 20 Elite
Posts: 2051
Joined: Tue Oct 03, 2006 1:39 am

Post by gklinger »

D'oh! Thanks for correcting that.

Joshua: You really should look into getting JiffyDOS installed in your VIC-20. The fast loader isn't as important on the VIC-20 as the 64 but the DOS wedge is such a time/hassle saver.
In the end it will be as if nothing ever happened.
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

Eh.. the "I" command is to initialize an formatted disk, not an unformatted one. If you try that on a foreign disk, the 1541 will blink its lamp and give you an error, I can't remember if it is a READ ERROR or DRIVE NOT READY.
Anders Carlsson

Image Image Image Image Image
User avatar
ral-clan
plays wooden flutes
Posts: 3702
Joined: Thu Jan 26, 2006 2:01 pm
Location: Canada

Post by ral-clan »

gklinger wrote:D'oh! Thanks for correcting that.

Joshua: You really should look into getting JiffyDOS installed in your VIC-20. The fast loader isn't as important on the VIC-20 as the 64 but the DOS wedge is such a time/hassle saver.
The Mega-Cart comes with an Nbla000's excellent Turbo loader. I *think* this has a built in DOS wedge (plus a lot of commands mapped to the function keys).
gklinger
Vic 20 Elite
Posts: 2051
Joined: Tue Oct 03, 2006 1:39 am

Post by gklinger »

True enough. As if people need another reason to buy a Mega-Cart. :)
In the end it will be as if nothing ever happened.
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

In the mean time, you can load a DOS wedge separately. For example there is one on the 1541 Test/Demo disk. However rarely you perform so many disk commands that it is worthwhile to load and run a program before issuing the commands.
Anders Carlsson

Image Image Image Image Image
CurtisP
Vic 20 Dabbler
Posts: 99
Joined: Tue Mar 08, 2005 8:24 pm

Post by CurtisP »

carlsson wrote:Eh.. the "I" command is to initialize an formatted disk, not an unformatted one. If you try that on a foreign disk, the 1541 will blink its lamp and give you an error, I can't remember if it is a READ ERROR or DRIVE NOT READY.
I does not initialize a disk. It initializes the drive (returning it to the power on state).
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

Hm, ok. But I believe the command reads track 18,0 to get the disk ID of the current disk?
Anders Carlsson

Image Image Image Image Image
CurtisP
Vic 20 Dabbler
Posts: 99
Joined: Tue Mar 08, 2005 8:24 pm

Post by CurtisP »

That is correct. I believe it also refreshes the RAM copy of the BAM from the disk.
carlsson
Class of '6502
Posts: 5516
Joined: Wed Mar 10, 2004 1:41 am

Post by carlsson »

I believe we both think of the same thing, just having different meanings of "initialize". In any case, neither the disk header nor BAM will be available on an unformatted (or foreign formatted) disk. Possibly it was just a typo from Lee.
Anders Carlsson

Image Image Image Image Image
Post Reply