ack/plat/cpm
2019-06-16 20:10:13 +02:00
..
emu Raise _XOPEN_SOURCE from 500 to 700 2019-03-22 14:35:07 -04:00
include First at-least-slightly working version of the CP/M read/write stuff. Not as 2019-06-16 19:04:17 +02:00
libsys Some byte shaving; lseek returns the offset. 2019-06-16 20:04:07 +02:00
tests Don't run the floating point tests on i80. 2019-02-09 14:24:31 +01:00
boot.s Miscellaneous bugfixed and renamings. 2019-06-11 21:33:57 +02:00
build-pkg.lua Experimentally use rst 1 to optimise frame variable loads. Reduces Star Trek 2019-02-07 00:06:32 +01:00
build-tools.lua Experimentally use rst 1 to optimise frame variable loads. Reduces Star Trek 2019-02-07 00:06:32 +01:00
descr First at-least-slightly working version of the CP/M read/write stuff. Not as 2019-06-16 19:04:17 +02:00
README Update README. 2019-06-16 20:10:13 +02:00

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

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

CP/M has special needs in many ways, the main one being that it doesn't
support byte-accessible files --- only complete 128-byte sectors can be read
or written. The port's read/write/open/close/lseek etc should handle this
transparently, but trying to write a fragment of a sector will involve a
read/modify/write cycle. No buffering is done (that's stdio's job).

File descriptors 0, 1 and 2 represent the console, as usual.

In addition, there's a special interface to give applications direct access
to CP/M. See include/cpm.h for details.

Floating point is not supported and 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