CcZ80++

From CPCWiki - THE Amstrad CPC encyclopedia!
Jump to: navigation, search

The language ccz80++ has a syntax based on the C++ language

It works in command line mode under Windows, but it is possible use it on Linux with WINE or MONO and also on MacOS with MONO. From a program written in the language ccz80++ the compiler generates an executable binary file for a computer-based Z80 or an emulator and also can generates an assembler file equivalent.

The compiler is free for any use and the existing library of functions on this page is open source, but the source code of compiler is not released.

For a compiler made by the same author that uses C syntax, see CcZ80.

Targets

ccz80 main targets are the z80 based homecomputers of the 80's (ZX Spectrum, MSX and the Amstrad CPC) but can generate code for any z80 based computer.

Usage

Download ccz80++ from the main website.

Set Windows environment variable 'PATH' to point to the location of the extracted zip file you downloaded.

Then to target CPC you set path to point to the location of the CPC classes you will be using:

e.g.

ccz80++ code.cpp /org=16384 /out=bin /path=classes/cpc;classes/generic

This will generate a binary. The compiler reports the start address, length and execution address but there is no AMSDOS header.

You need another tool to add that header to make it an executable on CPC.

Links

Home of ccz80++