home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.cbm
- Path: sparky!uunet!UB.com!pacbell.com!decwrl!csus.edu!netcom.com!fuzzy
- From: fuzzy@netcom.com (Fuzzy Fox)
- Subject: Re: 2 Q's: BMI & SAVE@
- Message-ID: <1993Jan27.060700.191@netcom.com>
- Organization: Foxes 'R' Us - Seven locations to serve you
- References: <1993Jan22.062624.23025@netcom.com> <30370@optima.cs.arizona.edu> <1993Jan24.043922.20002@netcom.com> <C1Ds7u.M53@ddsw1.mcs.com>
- Date: Wed, 27 Jan 1993 06:07:00 GMT
- Lines: 62
-
- dattier@ddsw1.mcs.com (DWT) writes:
-
- >| Huh?? If you always SCRATCH the file then SAVE, you will not run into
- >| the @-save bug, because you're NOT USING @-save!! :)
-
- >And now, yours truly:
-
- >David, so if you never leave North America you can't catch the Hong Kong
- >flu? If the same bug is triggered by scratch+save, then you haven't fallen
- >afoul of the save+replace bug, you've fallen afoul of the scratch+save bug.
- >It's no help to change the problem's name: you still have a confused disk.
-
- The scratch command scratches the file before writing a new copy. The
- @save command scratches the file after writing the new copy. They do
- not do the same thing, and to not run the same code in the drive ROM.
- One of the routines has a bug in it. The other does not.
-
- Perhaps you mistake me for someone who has just stepped in from nowhere
- to answer this question. In actuality I have dedicated a few years of
- my life to learning many of the intricacies of the C64 and 1541, and
- thus I feel like I know what I'm talking about. There is no bug in the
- Scratch command, nor is there a bug in the file-save routine. If you do
- not trust your disk to scratch a file properly or save a file, then you
- might as well just toss it out the window. DOS is not *THAT* buggy.
-
- >Chris was almost right. To avoid it, initialize first:
-
- >open15,8,15,"i0":close15
- >save"@0:filename",8
-
- This is wrong. The Initialize command will not cause the proper BAM to
- be written to disk if the bug is triggered.
-
- >Specifying the drive number works. Scratching first and then saving does
- >not (unless you scratch, initialize, and then save).
-
- Yes, actually, scratching then saving really does work. Whether or not
- you specify the drive number.
-
- >Credit to Ken Arnold for this one: a lot of disk messes blamed on save@ might
- >be the result of carelessness about disk ID's and initializing. (The 1541
- >doesn't automatically initialize when a disk is inserted but only if the disk
- >ID is different.) Take a disk out of a 1541 and insert a different disk with
- >the same ID, and the 1541 treats it as the same disk and uses the first
- >disk's BAM unless told to initialize.
-
- This is also not true. The drive will generally notice if you interrupt
- the write protect sensor by removing a disk and inserting another. It
- is very difficult to distract the drive so badly that it will not see
- the sensor being triggered. When the drive does notice a new disk being
- inserted, it will initialize on the next disk access, regardless of the
- ID of the newly inserted disk.
-
- Old 4040 drives did have the problem of not initializing properly when
- the same ID was inserted, but 1541's and beyond have nearly erradicated
- this problem.
-
- --
- #ifdef TRUE | Fuzzy Fox fuzzy@netcom.com
- #define TRUE 0 | a.k.a. David DeSimone an207@cleveland.freenet.edu
- #define FALSE 1 |
- #endif | "911 Emergency Rescue Service - Can you hold, please?"
-