Subject: Re: Suggested change to add volume numbering to .dsk disk image files Path: lobby!newstf02.news.aol.com!portc01.blue.aol.com!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-xfer.newsread.com!bad-news.newsread.com!netaxs.com!newsread.com!POSTED.monger.newsread.com!not-for-mail Newsgroups: comp.sys.apple2,comp.emulators.apple2 References: <3997E6D0.E98B760F@swbell.net> <39a8a0c9$0$756$7f31c96c@news01.syd.optusnet.com.au> <39aa4da7$0$780$7f31c96c@news01.syd.optusnet.com.au> Organization: Ghotinet From: russotto@wanda.vf.pond.com (Matthew T. Russotto) Lines: 42 Message-ID: Date: Tue, 29 Aug 2000 02:12:53 GMT NNTP-Posting-Host: 198.69.82.2 X-Complaints-To: Abuse Role , We Care X-Trace: monger.newsread.com 967515173 198.69.82.2 (Mon, 28 Aug 2000 22:12:53 EDT) NNTP-Posting-Date: Mon, 28 Aug 2000 22:12:53 EDT Xref: lobby comp.sys.apple2:105329 comp.emulators.apple2:20948 In article <39aa4da7$0$780$7f31c96c@news01.syd.optusnet.com.au>, Thug wrote: }"Joseph Oswald" wrote: }> }> > Plus, with DOS 3.3 and compatible formats, could the emulator not pick }up }> > the volume number from the VTOC? (Track $11, Sector $0, Byte $6. I don't }> > know if there's a similar record in ProDOS.) Protected disks or disks }with }> > their own custom DOS are still a problem, of course... }> }> I think that the volume number in the VTOC actually is *unrelated* to }> the volume number encoded in the sector address fields. I seem to recall, }> perhaps in the _DOSTalk Scrapbook_, some discussion which indicated }> that DOS 3.3 itself made no effort to properly initialize this value }> before formatting a disk. } }Never heard of that before! It's certainly not mentioned in "Beneath Apple }DOS", which is where I get almost all my knowledge of DOS internals. } }Just goes to show, even 20 years later I'm still learning stuff about the }Apple ][. Don't "learn" this fact; it's not true. The code which initializes the VTOC volume number is at AE96 in a 48K machine booted with a DOS 3.3 master. AE96- LDA $B5F9 AE99- EOR #$FF AE9B- STA $B3C1 B5F9 is the location of the 1s-complement of the volume number in the file manager work area. B3C1 is the location of the volume number in the VTOC buffer. This is done before the VTOC is written for the first time. -- Matthew T. Russotto russotto@pond.com "Extremism in defense of liberty is no vice, and moderation in pursuit of justice is no virtue."