Skip to content

Platform CCE MC1000

suborb edited this page Nov 3, 2018 · 8 revisions

Quick start

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

Emulator notes

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 run

Generic console

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);

External Links

Clone this wiki locally
You can’t perform that action at this time.