Publish VCC Plus OSS source distribution for 3.6.2 build 60
This commit is contained in:
commit
c652a5276d
1192 files changed
+272368
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user