TRS-80 Model 100 library for Small-C 85
Willard Goosey
4/16/2017

Requirements:
Small-C 85 : https://github.com/ncb85/SmallC-85
ASxxxx : http://shop-pdp.net
hex2co : From Chris Osburn's personal library at club100.org
	http://club100.org/memfiles/index.php?&direction=0&order=&directory=Chris%20Osburn/RBASIC%20Support
GNU Make: Standard GNU util 
objcopy: Standard GNU binutil

I do not know how to compile any of this under Windows. From the
SmallC README: SmallC compiled for win32 can be downloaded here:
https://drive.google.com/file/d/0B2TmWnRjWCj2alRqZHM1VEgwNFE/edit?usp=sharing

Windows binaries for ASX are available at shop-pdp.net. Cygwin is
apparently required, but you'd need that for GNU make anyway...

So here it is, a minimal Model-100 runtime for Small-C on the Model
100. Real docs are in m100smallc.txt and all source is here. Also
included is minihowto.txt, a short discussion of using ASxxxx for
general Model 100 assembly.

I am aware that this is not stdio. That is... part of the point. Yes,
I miss printf() too.

I am declaring this as an ALPHA release. Among other things that means
that Linus's Law ("Don't break userspace") is NOT in effect. If later
changes break your code, well sorry about that.

Many of these functions are labeled UNTESTED, and that means exactly
what it sounds like. The wrapper functions may have bugs, might be
setting the wrong registers, and maybe even calling completely
incorrect ROM routines. Please send me test code!


TO-DO

The makefile rules could use some help. Currently, to link a program
with multiple user-generated object files, the object file-> .ihx step
has to be explicitly defined. :-(

More test code needs to be done.

Generated code has no checks against overwriting memory files with
the stack.

Currently missing the cassette functions.

I want printf() too!

The compiler thinks \n should be linefeed. For the M100, carriage
return would be a better fit.
