Am 26.06.2021 um 22:52 schrieb David Schultz:
On 6/19/21 6:37 AM, Abaffa wrote:
Found at http://www.cpm.z80.de/source.html
On 19/06/2021 20:14, Abaffa wrote:
Hi There,
 I'd to port CPM to a homebrew 8 bit cpu I'm assembling. Is there a >>> source code of CPM (maybe 2.2) in assembly code? I've read that it was
compiled on focal.
Augusto
There was a portable version and the source is available. Mostly in C.
If course that will not help if you don't have a C compiler for the target.
Effectively, CP/M-68K is written in C, except of course the machine
specific parts, which should be completely in BIOS. The latter one has
to written from the ground up anyway, from some generic skeleton. The
CP/M-68K docs should guide with porting.
However, even with a C source available, this stuff is unusuable for the
rather memory-restricted 8 bit CP/Ms, besides some changes in APIs and
calling conventions.
An 8080/Z80 CP/M in C appears to exist, as a rewrite, but I cannot say
at hand where it can be found. But the job to get it onto an existing
8-bit machine may be easier provided you can use cross compilation. Any existing CP/M emulator on a PC, or (more seldomly, a cross compiler)
together with some facility to get the binaries onto the target machine
(like Kermit oder X/Y/Z-modem) should help.
-hl
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)