; After doing a "real" format of a three inch floppy diskette, the first ; cylinder will contain the boot record, FATS and so on. The *rest* of the ; diskette should contain 0xF6 bytes. This .CDU file tests whether the floppy ; is completely readable *and* whether the area that should contain 0xF6 really ; *does*... ; No disk writing is done so we can afford to dispense with the silly ; questions. confirm off ; For the first two tracks (that is one cylinder), we merely check that we can ; *read* the data thereon. We only "bleat" if we have any trouble reading the ; data. sound on_error ; Note that copying to the BYTE device is treated as a request to discard the ; data sent. That is, the BYTE device as an output is treated as a "byte ; bucket". copy disk fd0 range start:+36 to byte 0 ; Given that the first cylinder was OK, the *rest* of the diskette should ; contain 0xF6 bytes. We enable sounds because *whatever* the result of this ; COMPARE, we want it to make a noise. sound on ; Actually *do* the compare. The OFFSET makes sure we skip the stuff that ; should *not* be filled with 0xF6. compare disk fd0 offset 36 with byte 0xF6