--- a/src/writecocofile.cpp +++ b/src/writecocofile.cpp @@ -1,3 +1,7 @@ +/* VCC Plus: explicit forward allocation, November 16, 2026. + GPL-3.0-or-later. +*/ + /* writecocofile.cpp - A tool to write native files to a CoCo DECB disk image. Copyright (C) 2003-2026 Pierre Sarrazin @@ -897,6 +901,7 @@ "--kill|-k Kill the designated file.\n" "--read|-r Read instead of writing. Refuses to overwrite existing native file.\n" "--stdout|-s Like --read, but print file contents on standard out.\n" + "--allocate-forward Allocate from granule zero (the default).\n" "--allocate-after-dir When adding a file, allocate granules after the directory track,\n" " then continue allocating below that track if needed.\n" "--allocate-before-dir When adding a file, allocate granules before the directory track,\n" @@ -1401,6 +1406,11 @@ granuleAllocator.reset(new BackwardGranuleAllocator()); continue; } + if (curopt == "--allocate-forward") + { + granuleAllocator.reset(new ForwardGranuleAllocator()); + continue; + } if (curopt == "--allocate-after-dir") { granuleAllocator.reset(new PostDirTrackGranuleAllocator());