Platform CCE MC1000
zcc +mc1000 -create-app -Cz--audio program.c
-- or --
zcc +mc1000 -clib=ansi -create-app -Cz--audio program.c
This will generate three files, a.bin (a pure binary block), a.cas (an intermediate file), and a.wav, ready to be loaded on the real hardware.
The example above is meant to be loaded with the "LOAD" command. The GAMING mode is supported too:
zcc +mc1000 -subtype=gaming -create-app -Cz--audio program.c
The last versions of the MESS emulator are quite valid, but the tape loading timing seems to be slightly different. To save some time loading on MESS, add the "-Cz--fast" flag to the compiler command line.
The converted emulator can load the .bin file. To run enter
The generic console supports hires (256x192), colour (128x192) and text (32x16) modes. In hires mode you should compile with a CRT_FONT option or garbage will be printed on screen. Upto 128 UDGs are supported.
To switch to hires mode:
int mode = 1; console_ioctl(IOCTL_GENCON_SET_MODE, &mode);
To switch to colour mode:
int mode = 2; console_ioctl(IOCTL_GENCON_SET_MODE, &mode);
To return to text mode (green/yellow):
int mode = 0; console_ioctl(IOCTL_GENCON_SET_MODE, &mode);
or text mode in red/white:
int mode = 32; console_ioctl(IOCTL_GENCON_SET_MODE, &mode);