make ProDOS volumes, and the files and directories on them
The other filing system, in the shape the DOS 3.3 one already has: `format` and `open`, `openFile` and `saveFile`, `dirty`, `write`, `writeParts`, `read`, `delete` and `setLocked`, with `find` and `catalog` for looking. What ProDOS asks for beyond that is directories, so everything takes a path, and `makeDirectory` makes one; index blocks, so `write` lays out a seedling, a sapling or a tree as the size demands and `read` follows whichever it finds; and a length kept to the byte, so what `read` gives back is the file rather than the blocks it sits in. Blocks are 512 bytes and there can be 65,535 of them, so the same code serves a floppy and a thirty-two megabyte hard disk; `disk2.reorder` puts a 5.25 inch image into the order that wants, since a file says nothing about which of the two it holds. Nothing here was taken on trust. The module reads a ProDOS 2.4.2 master disk file for file. A volume made here, holding nothing but a copied loader and ProDOS's own two files written by this module, boots this emulator to a BASIC prompt, catalogues itself with the right types, block counts, dates and lock stars, and agrees with the bit map here about how many blocks are free. ProDOS opens a directory this module wrote, and a directory ProDOS makes reads back here with every field where this module puts its own. The one place they differed was the access byte on a directory header, where ProDOS clears the backup bit, and that is what this does now. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FawbWzEu5hoLLZSMCehUGP