Publish VCC Plus OSS source distribution for 3.6.2 build 60

This commit is contained in:
Brian Holman committed 2026-11-13 00:14:03 -07:00
commit c652a5276d
1192 files changed
+272368

No files matched your search

@@ -0,0 +1,29 @@
# SPDX-License-Identifier: GPL-3.0-or-later
CMOC ?= cmoc
PERL ?= perl
WRITECOCOFILE ?= writecocofile
VCC_CONFIGURATION ?= Debug
.PHONY: all disk clean
all: disk
disk: EVIDENCE.dsk
obj/main.o: main.c Makefile
@mkdir -p obj
ifeq ($(VCC_CONFIGURATION),Fail)
@printf 'main.c:1: warning: authored warning before the real error\n'
"$(CMOC)" --coco -O0 --intermediate --intdir=obj -c -o $@ missing.c
else
"$(CMOC)" --coco -O0 -fno-omit-frame-pointer --intermediate --intdir=obj -c -o $@ $<
endif
EVIDENCE.BIN: obj/main.o
"$(CMOC)" --coco --intermediate --org=2800 --limit=7800 -o $@ $<
EVIDENCE.dsk: EVIDENCE.BIN
$(PERL) -e 'print chr(255) x (35*18*256)' > $@
$(WRITECOCOFILE) $@ EVIDENCE.BIN
clean:
rm -rf obj
rm -f EVIDENCE.BIN EVIDENCE.map EVIDENCE.link EVIDENCE.dsk
@@ -0,0 +1,43 @@
// SPDX-License-Identifier: GPL-3.0-or-later
// Authored public-MCP acceptance: verified globals and ordinary guest sound.
#include <coco.h>
volatile unsigned fixture_value = 42;
volatile unsigned fixture_visits;
void fixture_ready(void)
{
++fixture_visits;
}
// Called only after an ordinary N key in an HD6309 acceptance run. Remain
// inside authored code after changing mode; no BASIC ROM calls follow LDMD.
void fixture_native(void)
{
for (;;) ++fixture_visits;
}
int main(void)
{
unsigned char key;
cls(0);
printf("MCP EVIDENCE\nL LOW TONE H HIGH TONE\n");
fixture_ready();
for (;;)
{
key = inkey();
if (key == 'l' || key == 'L') sound(80, 30);
if (key == 'h' || key == 'H') sound(180, 30);
if (key == 'v' || key == 'V') ++fixture_value;
if (key == 'n' || key == 'N')
{
asm
{
orcc #$50
fcb $11,$3D,$01
}
fixture_native();
}
}
return 0;
}
@@ -0,0 +1,16 @@
{
"entrySource": "main.c",
"makefile": "Makefile",
"binary": "EVIDENCE.BIN",
"diskImage": "EVIDENCE.dsk",
"buildTarget": "disk",
"diskTarget": "disk",
"cleanTarget": "clean",
"launchMode": "disk",
"launchCommands": ["LOADM\"EVIDENCE\":EXEC"],
"outputDirectories": ["evidence", "captures"],
"configurations": [
{"name": "Debug", "makeArguments": ["VCC_CONFIGURATION=Debug"]},
{"name": "Fail", "makeArguments": ["VCC_CONFIGURATION=Fail"]}
]
}