Skip to content

Repository files navigation

Programming-With-CP/M

These are the files supporting a series of blog posts on programming for CP/M with example programs.

There is a slide show that accompanies the detailed talk that I presented at BoatFest 2025 an international retro-computer festival.

The festival broadcast the talk on a Twitch Live Stream.

Sample Programs

In the talk we show several Hello World programs that we compile and run.

Assembler

Using the CP/M provided assembler and loader we can run a simple Hello World program.

  • source
  • Assemble: asm hello
  • Load: load hello
  • Run: hello

BASIC

With BASIC we are using both the MBASIC interpreter and the Microsoft BASCOM compiler with the same code.

  • source
  • Run the interpreter: mbasic hello.bas
  • Compile: BASCOM =HELLO /E
  • Link: L80 HELLO,HELLO/N/E
  • Run: hello

Pascal

Pascal is the Borland Turbo Pascal IDE. This tool allows you to edit, compile, and run without ever leaving to tool.

  • source
  • Start the IDE: turbo hello.pas

C

For C we used the Astec C compiler as it was one of the first for CP/M

  • source
  • Compile: cz hello
  • Assemble: as hello
  • Link: ln hello.o -lc
  • Run: hello

Fortran

The Fortran compiler is the Microsoft Fortran80 system.

  • source
  • Compile: f80 hello,hello=hello
  • Link: l80 hello,forlib/s,hello/n,/e:hellow
  • Run: hello

COBOL

The COBOL compiler is the Microsoft Cobol80 system.

  • source
  • Compile: cobol hello,hello=hello/r
  • Link: l80 hello/n,hello/e
  • Run: hello

Reference Material

These are PDFs that I found and downloaded for my own reference.

Reference Links

Here are the, currently active, links to all the sites on the web where I gathered information, inspiration and other resources.

Wikipedia Articles

All of the information from WIkipedia is used under the Creative Commons License

Microprocessors

Hardware

CP/M Related

Languages

CM/P Related Sites

Hardware Related Sites

Software Related Sites

Emulator Related Sites

Various Artilces

Some Discord Servers

About

The files supporting a talk on programming for CP/M with example programms.

Resources

Stars

13 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages