ack/plat/pc86
2018-06-23 23:56:34 +02:00
..
emu Remove c99-isms. 2018-06-23 23:56:34 +02:00
include Move time() into sys; change the name of the variable which controls it. 2018-06-23 19:40:50 +02:00
libsys Made pc86 work with the new libc. 2018-06-23 12:59:40 +02:00
tests Rearrange the tests into sets; allow plats to skip sets; pc86 and linux68k now 2018-06-08 15:59:04 +09:00
boot.s Rework the tests to run on pc86; lots of test fixes for the brk() test, which 2016-11-26 11:23:25 +01:00
build-pkg.lua Turns out I wasn't building the syscall libraries. Do so. 2016-08-14 11:23:57 +02:00
build-tools.lua Biggish refactor to break cycles; my build rules were full of them. cpm builds, 2016-08-14 01:39:40 +02:00
descr Sections are now aligned (required by the EM spec). 2017-01-07 18:47:46 +01:00
README Make pc86 echo console output to the serial port, so qemu can pipe it to 2016-11-25 20:28:41 +01:00

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


The pc86 platform
=================

pc86 is an i86-based BSP that produces bootable floppy disk images that can
be run on most PCs. It is intended to be quick and dirty rather than actually
useful, although it may come in handy for hardware test purposes, boot
loaders, and the like.

The code runs in TINY mode, where CS, DS and SS all share the same segment.
This means that there's not very much memory available. It would be very easy
to change it to run in SMALL mode, where CS occupies one segment and DS and SS
another, which would give 64kB for nearly all programs; I just haven't done it.

IEEE floating point is available, but requires an FPU.

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).

Console output is echoed to the serial port (without any setup). This is used
by qemu for running tests.


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

ack -mpc86 -O -o pc86.img examples/paranoia.c

The file pc86.img can then be copied onto a floppy and booted, or run via qemu
or somesuch emulator.


David Given
dg@cowlark.com