ack/plat/cpm
David Given aacabba165 Apply fix contributed by George Koehler:
- don't crash if BSS overlaps BDOS
- fix stack initialisation bug
- fix command line argification
2013-06-02 22:02:15 +01:00
..
include Added cpm platform. 2007-04-27 22:42:41 +00:00
libsys Fixed the trap code to write out the error message correctly. 2007-04-29 20:47:48 +00:00
.distr Update distribution files. 2013-05-15 23:46:15 +01:00
boot.s Apply fix contributed by George Koehler: 2013-06-02 22:02:15 +01:00
build.mk Top, topgen, aelflod. Moved the libraries back into the platform-specific 2013-05-13 23:26:15 +01:00
descr Top, topgen, aelflod. Moved the libraries back into the platform-specific 2013-05-13 23:26:15 +01:00
pmfile Added cpm platform. 2007-04-27 22:42:41 +00:00
README Documented floating-point status. 2007-04-28 22:34:47 +00:00

# $Source$
# $State$
# $Revision$


The cpm platform
=================

cpm is an i80-based BSP that generates CP/M executables that can be run on any
CP/M-compliant machine.

This port only implements a very limited set of syscalls --- and most of those
are stubs required to make the demo apps link. File descriptors 0, 1 and 2
represent the console. All reads block. There's enough TTY emulation to allow
\n conversion and local echo (but it can't be turned off).

There's a special, if rather minimilist, interface to give applications access
to CP/M. See include/cpm.h for details.

IEEE floating point is not available. Attempts to use floating-point numbers 
will cause the program to terminate.


Example command line
====================

ack -mcpm -O -o cpm.com examples/paranoia.c

The file cpm.com can then be run.

(Although note that Paranoia is very big, and you'll need a CP/M machine with
lots of memory for it to fit. Which it does, just.)


David Given
dg@cowlark.com