All,
I've set up an experimental variant of the CPC target library to be linked with the CP/M specific stuff.
It roughly worked, as you can see here:
http://www.z88dk.org/wiki/doku.php/exam ... ts:coswave
Changes are in the CVS tree, at the moment (please note the latest cpc_crt0.asm is no longer valid for the library of the current release).