Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsfcgl!pixar!unicom!sayah_k From: sayah_k@unicom.UUCP (KIANUSCH... Yes, Kianusch himself !!!) Newsgroups: comp.sys.cbm Subject: Re: autobooting kermit from a 1581 Message-ID: <443@unicom.UUCP> Date: 27 Mar 89 00:05:08 GMT References: <802@zehntel.UUCP> Reply-To: sayah_k@unicom.UUCP (KIANUSCH... Yes, Kianusch himself !!!) Organization: No Organization... all messed up !!! Lines: 32 In article <802@zehntel.UUCP> dave@zehntel (Dave Funk) writes: > ... The only thing I haven't quite figured >out is how to also overwrite the first byte in the sector (seems this is >reserved for the sector length). ... The problem might be... The are several ways of writing a sectory on a disc. One way is (in Basic): PRINT#15,"B-W";channel#;drive#;track#;sector# There is the bug, because the "B-W" Command uses the first byte as a buffer- pointer, so what is written on the disc are bytes 1 to 255 (byte 0 is left out)! So what can we do? Hm... Just use the 'User-Command' instead of the 'B-W'-Command! The syntax is almost the same: PRINT#15,"U2",channel#;drive#,track#;sector# ("U2" instead of "B-W") Everything else stays the same! This should do it! BTW: The same thing is also true for the "B-R" command. So it's much better to use "U1" instead of "B-R" ! I hope this helped. :-) Greetings Kianusch