• Porting CPM to a new homebrew cpu

    From Abaffa@21:3/142 to UseNet.COMP.OS.CPM on Sat Jun 19 20:14:33 2021

    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
    --- SBBSecho 3.14-Linux
    * Origin: Baffa BBS - baffa.zapto.org (21:3/142)
  • From Abaffa@21:3/142 to Abaffa on Sat Jun 19 23:37:30 2021
    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
    --- SBBSecho 3.14-Linux
    * Origin: Baffa BBS - baffa.zapto.org (21:3/142)
  • From bobbi.8bit@gmail.com@21:1/5 to Abaffa on Fri Jun 25 17:46:00 2021
    CP/M 2.2 source is mostly in PL/M if I am not mistaken.

    Bobbi

    Abaffa@f10.n1.z36.fidonet.org (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
    .


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Douglas Miller@21:1/5 to All on Sat Jun 26 09:26:05 2021
    CP/M utilities are mostly in PL/M, but the BDOS, CCP, and (reference) BIOS are in assembly. Are you porting to a non-8080 CPU family? Or just bringing up CP/M on a different platform that still uses an 8080-compatible CPU?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Schultz@21:1/5 to Abaffa on Sat Jun 26 15:52:16 2021
    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.

    --
    http://davesrocketworks.com
    David Schultz

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hl351ge@21:1/5 to All on Mon Jun 28 12:44:09 2021
    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)