Platform CCE MC1000
- CPU: Z80 @ 3.579545 Mhz
- VDP: MC6847, 6k VRAM
- PSG: AY-3-8910
- RAM: 16k...64k?
- ROM: 16k
- Native console output
- Native console input
- ANSI vt100 engine
- Generic console
- Redefinable font
- UDG support
- Paper colour
- Ink colour
- Inverse attribute
- Bold attribute
- Underline attribute
- Lores graphics
- Hires graphics
- PSG sound
- ETracker (SAA tracker)
- PSG Lib (SN76489)
- Arkos2 Player (AY)
- WYZ Player (AY)
- Vortex tracker (AY)
- One bit sound
- Inkey driver
- Hardware joystick
- File I/O
- Interrupts
- RS232
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 run
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 hires mode (with alternate colours):
int mode = 1 + 32;
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);
- Overview
- Platform List
- Unsupported Platforms
- i8080/5 Support
- Homebrew hardware quickstart
- Retargetting
- Building the libraries
- Clang support
- Pragmas
- Adding to Classic
- Introduction
- Library Configuration
- CRT
- Header Files
- Assembly Language
- Library in Depth
- Embedded Platform
- Adding to NewLib
- Benchmarks
- Datatypes
- Debugging
- Decompression
- More than 64k
- Deficiencies
- Compiling Larger Applications
- Importing routines written in 8080 assembly mnemonics
- Using CP/M libraries in REL format with z88dk
- Writing optimal code
- Speeding up Compilation
- CMake usage