Sync VCC Plus 3.7.1 build 67 source

Refresh reviewed MCP output export, four-drive owned playtests, bounded BASIC readiness, and pinned CMOC 0.1.101 source/patches. Preserve independent source-edition identity, empty libraries, notices and privacy boundaries.

Validated 74 export/privacy checks, pinned dependency sources, and an independent unsigned universal Release build. A subsequent documentation-only correction removes an excluded qualification link; all build inputs remain identical.
This commit is contained in:
Brian Holman committed 2026-11-17 08:42:27 -07:00
1 parent 4abc194001
commit 5534005799
54 files changed
+2950 -435

No files matched your search

+10 -11
View File
@@ -1,5 +1,10 @@
# Local CMOC compiler patches
The descriptions below retain each patch's original 0.1.100 history. On November
16, 2026, the four compiler patches were reapplied and qualified against CMOC
0.1.101, including its refactored instruction-effects analysis. The allocator
patch was replaced as documented below.
`cmoc-debug-metadata.patch` is an original VCC Plus extension to CMOC 0.1.100,
modified November 3, 2026 and licensed GPL-3.0-or-later. It is applied to the ignored build copy by
`tools/toolchain/build.py`; the pinned upstream snapshot and its checksums stay
@@ -69,19 +74,13 @@ Packaged runtimes identify the change with `vccIndexedArgumentLoadFix: 1`.
The [guest regression](../../../tests/toolchain/logical-negation.c) prints actual results for zero, widened unsigned bytes and 16-bit values. Run `tools/toolchain/check.py --rom` with a local CoCo 3 ROM to check those results at `-O0` and `-O2` on MC6809 and HD6309. Rebuilt app toolchains record `vccAddZeroFlagsFix: 1` in the manifest.
## Explicit before-directory disk allocation
## Explicit allocation
`writecocofile-before-dir.patch` (November 4, 2026, GPL-3.0-or-later) adds
`--allocate-before-dir` as an explicit choice of the existing forward allocator.
It starts at granule zero, skips occupied granules, and continues above the
directory track if necessary. It does not imply a strict below-directory limit.
The last allocation option wins, as with the existing choices.
`writecocofile-before-dir.patch` now adds `--allocate-forward`, preserving the
old ascending layout. The original option now follows upstream.
`build.py` applies it only to the build copy. `build-runtime.py` records
`vccWriteCoCoFileBeforeDir: 1`. The original CoCo Letters Makefile uses this option;
its former recipe-removal patch is retired and the vendored game matches upstream.
Runtime verification checks allocation order, byte-identical default behavior,
file readback, and spillover beyond the lower half of the disk.
The `--allocate-before-dir` meaning changed: it now starts at 33 and descends,
then wraps. Callers needing the old layout must migrate.
## LWASM project input boundary
@@ -1,28 +1,26 @@
--- a/src/writecocofile.cpp
+++ b/src/writecocofile.cpp
@@ -1,3 +1,8 @@
+/* VCC Plus modification, November 4, 2026: support an explicit
+ --allocate-before-dir option using the existing forward allocator.
+ This modification is licensed GPL-3.0-or-later.
@@ -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 <http://sarrazip.com/>
@@ -874,6 +879,8 @@
"--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-before-dir Allocate from granule zero (the default), preferring space\n"
+ " before the directory, then continuing above it if needed.\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-from-end When adding a file, allocate granules from the end.\n"
@@ -1376,6 +1383,11 @@
@@ -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-before-dir")
+ if (curopt == "--allocate-forward")
+ {
+ granuleAllocator.reset(new ForwardGranuleAllocator());
+ continue;