Files

44 lines
1.0 KiB
C

// 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;
}