Page with a portable version in C and some CM/P 68k in Pascal:
http://retrotechnology.com/dri/pcpm.html
CP/M for the Motorola MEX68KECB board.
http://home.earthlink.net/~schultdw/cpm68/
There is a CM/P Z80 simulator on Aminet with assembler source. It provides a virtual H19 Terminal, that could come handy for your idea.
http://aminet.net/package/misc/emu/SimCPM